netbox-community / netbox-napalm-plugin

NetBox Napalm plugin
Apache License 2.0
49 stars 13 forks source link

Can't connect to Cisco ASR9K #40

Open ceccohost opened 2 months ago

ceccohost commented 2 months ago

NetBox Napalm Plugin version

v0.2.1

NetBox version

v4.0.5

Python version

3.11

Steps to Reproduce

I set up platform IOS-XR with napalm driver iosxr_netconf and set up Cisco ASR so I can login from command line with command napalm --user user --password 'passwsord' --vendor iosxr_netconf --optional_args 'allow_agent=False' xxx.xxx.xxx.xxx call get_facts So I add {"allow_agent": "False"} to NAPALM arguments to platform. (Without optional arg "allow_agent=False" napalm command line failes with napalm.base.exceptions.ConnectionException: SSHException('No existing session'))

Expected Behavior

Device should show "Status", "LLDP Neighbors", "Config" tabs

Observed Behavior

I got an error: Error Fetching Device Config Error connecting to device at xxx.xxx.xxx.xxx: SSHException('No existing session')

cruse1977 commented 3 weeks ago

Hi, this is specific to IOS-XR and can be resolved by resolved by adding the optional args into the platform config, so I'm not sure this a bug or issue ?