Skip to content
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 (backport #16918) #16920

Merged
merged 4 commits into from
Sep 25, 2024

Commits on Sep 25, 2024

  1. zebra: Fix snmp walk of zebra rib

    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 <sharpd@nvidia.com>
    (cherry picked from commit ecd9d44)
    donaldsharp authored and mergify[bot] committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    7cd5834 View commit details
    Browse the repository at this point in the history
  2. zebra: Let's use memset instead of walking bytes and setting to 0

    Signed-off-by: Donald Sharp <sharpd@nvidia.com>
    (cherry picked from commit 659cd66)
    donaldsharp authored and mergify[bot] committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    527d6c3 View commit details
    Browse the repository at this point in the history
  3. zebra: Correctly report metrics

    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 <sharpd@nvidia.com>
    (cherry picked from commit e41ae0a)
    donaldsharp authored and mergify[bot] committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    46e023d View commit details
    Browse the repository at this point in the history
  4. zebra: Add missing proto translations

    Add missing isis and eigrp proto translations.
    
    Signed-off-by: Donald Sharp <sharpd@nvidia.com>
    (cherry picked from commit f53dde0)
    donaldsharp authored and mergify[bot] committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    1aca234 View commit details
    Browse the repository at this point in the history