Setting Connection Options in Netbox #141
-
Is there a mechanism to set the ConnectionOptions for scrapli in netbox? Right now I'm doing this in code but I think it would be better set within netbox. Specifically the classic variant. The other fields are being pulled from the inventory/defaults.yml file but I'm lazilly setting it again. from nornir.core.inventory import ConnectionOptions
nokia_rtrs.inventory.defaults.connection_options["scrapli"] = ConnectionOptions(extras={'auth_strict_key': False,
'ssh_config_file': True, 'variant': "classic"}) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
no idea! I imagine this is more a net box inventory question than a scrapli thing? if the inventory plugin is setting things for other transports I dont see why it couldnt/wouldnt work since the options for scrapli connections are all just set normally via the extras and such like "normal" nornir things! |
Beta Was this translation helpful? Give feedback.
-
For anyone following along check wvandeun/nornir_netbox#44 |
Beta Was this translation helpful? Give feedback.
no idea! I imagine this is more a net box inventory question than a scrapli thing? if the inventory plugin is setting things for other transports I dont see why it couldnt/wouldnt work since the options for scrapli connections are all just set normally via the extras and such like "normal" nornir things!