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
fix bdcom/pbn neighbour discovery #15935
base: master
Are you sure you want to change the base?
Conversation
The current neighbour discovery code doesn't seem to work at all. The bdcom snmpsim file doesn't contain any neighbour discovery realted records, so I can't check if there are any format changes. @hrtrd @murrant @kakopedreros @vitalisator @Rosiak @laf: you contributed BDCOM/PBN code before, can you check if LLDP neighbour discovery is working with your devices and the current librenms master code? |
Hi @freddy36 And concerning the tests, this code has been changed to use the newer SNMP methods. As you noticed, test data was missing, so it was probably broken during it. So please add test data to you change, and we'll get it merged when ready. If it breaks things, we'll get more test data from other users and improve the code to handle different versions. |
Please add test data so we can ensure your change is not broken in the future. |
Please ignore the current test failures, it is linked to another PR and will be fixed ASAP. |
re-run tests |
6a4d3ec
to
8214846
Compare
I've added a test. While the snmprec file contains the relevant OIDs (1.3.6.1.4.1.3320.127.1.4.1.1), the save-test-data.php script apparently doesn't run/care about the results of the discovery-protocols modul (no neighbour informations are included in the json). Is this the intended behaviour? |
a3f2d92
to
1edcdfc
Compare
Ok. Let see if we have a few testers for your patch. You are right, JSON does not compute links (including neighbors) right now. |
fix bdcom/pbn neighbour discovery
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.