-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally set napalm connection options if they exist in netbox
- Loading branch information
1 parent
08f7419
commit ff5f42e
Showing
12 changed files
with
413 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletions
122
tests/plugins/inventory/netbox/2.3.5/expected_use_platform_args.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
{ | ||
"hosts": { | ||
"1-Core": { | ||
"port": null, | ||
"hostname": "10.0.1.1", | ||
"username": null, | ||
"password": null, | ||
"platform": "junos", | ||
"data": { | ||
"serial": "", | ||
"vendor": "Juniper", | ||
"asset_tag": null, | ||
"site": "sunnyvale-ca", | ||
"role": "rt", | ||
"model": "mx480" | ||
}, | ||
"connection_options": { | ||
"napalm": { | ||
"extras": { | ||
"optional_args": { | ||
"ignore_warning": true | ||
} | ||
}, | ||
"hostname": null, | ||
"password": null, | ||
"platform": null, | ||
"port": null, | ||
"username": null | ||
} | ||
}, | ||
"groups": [] | ||
}, | ||
"2-Distribution": { | ||
"port": null, | ||
"hostname": "172.16.2.1", | ||
"username": null, | ||
"password": null, | ||
"platform": "junos", | ||
"data": { | ||
"serial": "", | ||
"vendor": "Juniper", | ||
"asset_tag": null, | ||
"site": "sunnyvale-ca", | ||
"role": "rt", | ||
"model": "ex4550-32f" | ||
}, | ||
"connection_options": { | ||
"napalm": { | ||
"extras": { | ||
"optional_args": { | ||
"ignore_warning": true | ||
} | ||
}, | ||
"hostname": null, | ||
"password": null, | ||
"platform": null, | ||
"port": null, | ||
"username": null | ||
} | ||
}, | ||
"groups": [] | ||
}, | ||
"3-Access": { | ||
"port": null, | ||
"hostname": "192.168.3.1", | ||
"username": null, | ||
"password": null, | ||
"platform": null, | ||
"data": { | ||
"user_defined": 1, | ||
"serial": "", | ||
"vendor": "Cisco", | ||
"asset_tag": null, | ||
"site": "san-jose-ca", | ||
"role": "sw", | ||
"model": "3650-48tq-l" | ||
}, | ||
"connection_options": {}, | ||
"groups": [] | ||
}, | ||
"4": { | ||
"port": null, | ||
"hostname": "10.0.1.4", | ||
"username": null, | ||
"password": null, | ||
"platform": "junos", | ||
"data": { | ||
"serial": "", | ||
"vendor": "Juniper", | ||
"asset_tag": null, | ||
"site": "sunnyvale-ca", | ||
"role": "rt", | ||
"model": "mx480" | ||
}, | ||
"connection_options": { | ||
"napalm": { | ||
"extras": { | ||
"optional_args": { | ||
"ignore_warning": true | ||
} | ||
}, | ||
"hostname": null, | ||
"password": null, | ||
"platform": null, | ||
"port": null, | ||
"username": null | ||
} | ||
}, | ||
"groups": [] | ||
} | ||
}, | ||
"groups": {}, | ||
"defaults": { | ||
"port": null, | ||
"hostname": null, | ||
"username": null, | ||
"password": null, | ||
"platform": null, | ||
"data": {}, | ||
"connection_options": {} | ||
} | ||
} |
Oops, something went wrong.