Problem with connection options
Sivolen opened this issue · 1 comments
Sivolen commented
Hi!
I made a config and added timeout parameters there, but nornir does not perceive them, can you tell me why?
inventory:
plugin: NetBoxInventory2
options:
# nb_url: 'http://127.0.0.1'
nb_token: ' '
ssl_verify: False
use_slugs: True
flatten_custom_fields: True
use_platform_napalm_driver: True
filter_parameters:
role: ["cs"]
connection_options:
netmiko:
extras:
conn_timeout: 20
paramiko:
extras:
conn_timeout: 20
wvandeun commented
connection_options
should not be defined in the inventory configuration settings.
The inventory configuration settings define how to connect to the inventory, not how to connect to the devices in that inventory.
When using the NetBox inventory plugin you can use a defaults file or group file in which you can define the connection_options.
Another option is to set the defaults (hard code) in your python script, or to use a Nornir transform function