]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Display nhg's afi as `No Afi` 18709/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 23 Apr 2025 16:00:55 +0000 (12:00 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 23 Apr 2025 16:00:55 +0000 (12:00 -0400)
commit8875befc7f805ea150208e92c122ffb27fd7d8f4
tree1c05733ba039dc5faaa713e7189f17da90baebb5
parent827e1d69b9340a1c6f75edb1eaed53f19d804ce5
zebra: Display nhg's afi as `No Afi`

When displaying `show nexthop-group rib` the afi
displayed for Nexthop Groups ( not singletons ) is
`bad-value` which while true to the specific of
the AFI it's not necessarily what we want to display
to the end operator.  Add a wrapper function for
nhg's to do the right thing.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_nhg.c
zebra/zebra_nhg.h
zebra/zebra_vty.c