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

LLDP interface showing with quotes #4390

Closed
inetman28 opened this issue Mar 20, 2020 · 5 comments
Closed

LLDP interface showing with quotes #4390

inetman28 opened this issue Mar 20, 2020 · 5 comments

Comments

@inetman28
Copy link

inetman28 commented Mar 20, 2020

Environment

  • Python version: 3.6.8
  • NetBox version: 2.7.8
  • Napalm version: 2.3.3

Steps to Reproduce

  1. Navigate to a device and click the "LLDP Neighbors" tab

Expected Behavior

I must see green line if configured interface == lldp interface

Observed Behavior

Because LLDP interface show with quotes then str did not match, for example see below screen
image

@jeremystretch
Copy link
Member

What does the raw API response look like? (Go to http://netbox/api/dcim/devices/<id>/napalm/?method=get_lldp_neighbors_detail in your browser see the response.)

@jeremystretch jeremystretch added the status: revisions needed This issue requires additional information to be actionable label Mar 20, 2020
@inetman28
Copy link
Author

remote_port with double quotes )

         "Ethernet49/1": [
            {
                "parent_interface": "Ethernet49/1",
                "remote_port": "\"Ethernet49/1\"",
                "remote_port_description": "SOMETHING DESCRIPTION",
                "remote_system_name": "DC1-SW4",
                "remote_system_description": "Arista Networks EOS version 4.22.3M running on an Arista Networks DCS-7060SX2-48YC6",
                "remote_chassis_id": "98:5D:82:62:BD:ВВ",
                "remote_system_capab": [
                    "bridge",
                    "router"
                ],
                "remote_system_enable_capab": [
                    "bridge",
                    "router"
                ]
            }
        ],

@jeremystretch
Copy link
Member

That makes sense, then. NetBox is merely a proxy for the data returned by the NAPALM driver. Seems like a bug in the NAPALM driver to me, though it might also be something oddly platform-specific. In any case, it's not something we can fix in NetBox unfortunately.

@jeremystretch jeremystretch removed the status: revisions needed This issue requires additional information to be actionable label Mar 20, 2020
@inetman28
Copy link
Author

thanks you. I opened new issue in napalm repo:
napalm-automation/napalm#1153

@asergeant01
Copy link

I have it that this will be addressed by Arista.....

LLDP thing is fixed under Bug 480042 so it should start making it to releases in the next few weeks
One caveat though is that to preserve existing behaviour (to stop changes from potentially breaking existing automation deployments) we are adding "interfaceId_v2": "Ethernet1 rather then changing interfaceId

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants