LLDP interface showing with quotes #3494

Closed
opened 2025-12-29 18:29:30 +01:00 by adam · 5 comments
Owner

Originally created by @inetman28 on GitHub (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

Originally created by @inetman28 on GitHub (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](https://user-images.githubusercontent.com/45913745/77159190-f0374400-6ab5-11ea-8160-4409a40c52d6.png)
adam closed this issue 2025-12-29 18:29:30 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 20, 2020):

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 commented on GitHub (Mar 20, 2020): 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.)
Author
Owner

@inetman28 commented on GitHub (Mar 20, 2020):

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"
                ]
            }
        ],
@inetman28 commented on GitHub (Mar 20, 2020): 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" ] } ], ```
Author
Owner

@jeremystretch commented on GitHub (Mar 20, 2020):

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 commented on GitHub (Mar 20, 2020): 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.
Author
Owner

@inetman28 commented on GitHub (Mar 20, 2020):

thanks you. I opened new issue in napalm repo:
https://github.com/napalm-automation/napalm/issues/1153

@inetman28 commented on GitHub (Mar 20, 2020): thanks you. I opened new issue in napalm repo: https://github.com/napalm-automation/napalm/issues/1153
Author
Owner

@asergeant01 commented on GitHub (May 18, 2020):

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

@asergeant01 commented on GitHub (May 18, 2020): 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3494