Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAPALM Arguments not applied? #46

Open
mathieumd opened this issue Oct 22, 2024 · 0 comments
Open

NAPALM Arguments not applied? #46

mathieumd opened this issue Oct 22, 2024 · 0 comments

Comments

@mathieumd
Copy link

NetBox Napalm Plugin version

0.3.0

NetBox version

4.1.3

Python version

3.10

Steps to Reproduce

On my Huawei VRP swtiches (for example Huawei S6730-H48X6C and S6730-H24X6C), LLDP Neighbors is working.

But on one, a Huawei S5735-L24P4X-A1, it gets a timeout after the 10 seconds default:

Error connecting to the device at 10.0.0.101: Cannot connect to 10.0.0.101
2024-10-22_14-31

So I set this JSON as NAPALM Arguments in Napalm Platform Configs for the huawei_vrp platform. But it doesn't change anything, it looks like it's not applied.

{
    "--optional_args": "conn_timeout=20,read_timeout=20"
}

Running napalm manually confirm that this conn_timeout is required:

napalm --user readonly --vendor huawei_vrp 10.0.0.101 call get_lldp_neighbors_detail
2024-10-22 14:34:00,427 - napalm - ERROR - open - Failed: Cannot connect to 10.0.0.101
...
netmiko.exceptions.NetmikoTimeoutException: Paramiko: 'No existing session' error: try increasing 'conn_timeout' to 15 seconds or larger.
...

So, I added conn_timeout, and now it connects (it still fails, but for another reason):

napalm --user readonly --vendor huawei_vrp --optional_args conn_timeout=20 10.0.0.101 call get_lldp_neighbors_detail
2024-10-22 14:36:43,367 - napalm - ERROR - method - Failed:
Pattern not detected: 'Info:\\ The\\ configuration\\ takes\\ effect\\ on\\ the\\ current\\ user\\ terminal\\ interface\\ only\\.' in output.

But for this second problem I will open another issue at https://github.com/napalm-automation-community/napalm-huawei-vrp.

Expected Behavior

NAPALM Arguments should be applied.

Observed Behavior

NAPALM Arguments are not applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant