]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Correctly report metrics
authorDonald Sharp <sharpd@nvidia.com>
Wed, 25 Sep 2024 16:09:40 +0000 (12:09 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 25 Sep 2024 16:09:40 +0000 (12:09 -0400)
commite41ae0acc1940b568def5018efad3df019023f85
treeaa851c91ceb08f56be7c0b8242bfe37c94ea3cf4
parent659cd66427ac8a6fe705b4a319245b7c88f80c05
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>
zebra/zebra_snmp.c