-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
zebra snmp fixes #16918
Merged
ton31337
merged 4 commits into
FRRouting:master
from
donaldsharp:addr_cmp_problems_in_snmp
Sep 25, 2024
Merged
zebra snmp fixes #16918
ton31337
merged 4 commits into
FRRouting:master
from
donaldsharp:addr_cmp_problems_in_snmp
Sep 25, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The snmp walk of the zebra rib was skipping entries because in_addr_cmp was replaced with a prefix_cmp which worked slightly differently causing parts of the zebra rib tree to be skipped. Signed-off-by: Donald Sharp <[email protected]>
Signed-off-by: Donald Sharp <[email protected]>
Report the routes metric in IPFORWARDMETRIC1 and return -1 for the other metrics as required by the IP-FORWARD-MIB. inetCidrRouteMetric2 OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-create STATUS current DESCRIPTION "An alternate routing metric for this route. The semantics of this metric are determined by the routing- protocol specified in the route's inetCidrRouteProto value. If this metric is not used, its value should be set to -1." DEFVAL { -1 } ::= { inetCidrRouteEntry 13 } I've included metric2 but it's the same for all of them. Signed-off-by: Donald Sharp <[email protected]>
Add missing isis and eigrp proto translations. Signed-off-by: Donald Sharp <[email protected]>
@Mergifyio backport stable/10.1 stable/10.0 stable/9.1 stable/9.0 stable/8.5 stable/8.4 |
✅ Backports have been created
|
This was referenced Sep 25, 2024
donaldsharp
added a commit
that referenced
this pull request
Sep 25, 2024
zebra snmp fixes (backport #16918)
donaldsharp
added a commit
that referenced
this pull request
Sep 25, 2024
zebra snmp fixes (backport #16918)
donaldsharp
added a commit
that referenced
this pull request
Oct 1, 2024
zebra snmp fixes (backport #16918)
donaldsharp
added a commit
that referenced
this pull request
Oct 1, 2024
zebra snmp fixes (backport #16918)
donaldsharp
added a commit
that referenced
this pull request
Oct 1, 2024
zebra snmp fixes (backport #16918)
donaldsharp
added a commit
that referenced
this pull request
Oct 1, 2024
zebra snmp fixes (backport #16918)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Was playing with snmp and noticed some issues with zebra's implementation of it.
a) snmp walk was wrong. Whomever wrote this found a new and interesting way to make something simple hard. Further work should be done to optimize this, just putting this back into working order since I broke it in 2019
b) Who would think to walk the individual bytes of a struct to set them to 0 in a loop when memset is available?
c) Metrics are not being reported at all. Let's return them
d) Some missing proto translations. The values are weird so we don't get everything.