-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Juniper LLDP local port index exception #18318
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
base: master
Are you sure you want to change the base?
Juniper LLDP local port index exception #18318
Conversation
Testing this on my setup at the moment and so far so good... Some messed up data seems to be fixed now on newer software versions. |
In your issue you say "When running this on a Juniper EX3300 (at least seen on this types) the neighbor info is incorrect most of the time." What causes it to be incorrect most, but not all of the time? |
The device outputs neighbors as ifindex |
I get that but you make it sound like it doesn't happen all the time. |
Some ports had the correct data while others did not. There must be something wrong with the check
... as the default is to use the array key as ifindex as explicitly done with junos on this commit, which makes me think this is related to #18145 |
I'm not sure, but I think this is because the statement;
is just before
and maybe not in all cases the An example of data is shown below. If I add the two lines so
|
Is this on a newer software and hardware? |
Yes, the specific output in #18318 (comment) is from and EX4100-48MP running 22.4R3-S4.4
|
Here's the deal. LLDP supports different TLV. The code tries to guess what TLV is available by first checking if the 802.1D index is used. Then it should fallback to ifIndex. (there are signs that check is faulty) These things are sometimes user-configurable and some are determined by the neighbor device. So setting it per-os is usually folly. There are SNMP OIDs to detect which TLV are used, but they are often inconsistent. Over all, the LLDP code is just a mess and devolving rapidly. Hopefully, I can get some time to push @Npeca75 's rework of it across the finish line. In summary, you can't just assume it is ifIndex for all JunOS. |
Thanks. This explains why I never saw this on older devices like EX2200. |
this change is described in issue #18317
I'm not sure test data can show this since this is specific for a hardware device. so not checked those boxes. Hope the issue explains it, otherwise I'll try to explain better.
DO NOT DELETE THE UNDERLYING TEXT
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>
, i.e./scripts/github-apply 5926
After you are done testing, you can remove the changes with
./scripts/github-remove
. If there are schema changes, you can ask on discord how to revert.