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
Fixed ifType being removed when a port is down #9493
Conversation
Perhaps it would be better to prevent ifType from being deleted when a port is down (I'm assuming selective port polling)? |
Assuming right for selective port polling. |
Quick update, seems that the discovery process does not put ifType in DB. So it is not as easy as I first hoped ;) This could even be chosen as the default behaviour for this OID cause ifType is a very stable value I would say, stable enough to leave poller and be only in discovery ... What do you think ? |
This makes more sense than increasing polling times. |
Polling time unchanged in current state of the PR. Instead, the data already collected during the discovery process is saved or updated, and the polling keeps the values unchanged if selective polling is enabled. |
Tests can be fixed my running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just needs test data update.
Hi @murrant |
I've pushed the tests up. |
DO NOT DELETE THIS TEXT
Please note
Hello,
This PR is adding ifType to table_base_oids. Without it, a port down looses its type, making it difficult to filter on this criteria. It seems that ifType is not a costly OID so it should not be to bad to the performance.
I run this change on my setup for a while, but this is of course not significant considering the large amount of devices around. At least on a few Cisco switches and mostly Huawei devices, it did not make a change to add it.
Waiting for feedbacks ;)
Bye
PipoCanaja
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.