]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix 'show bgp ipv4 vpnv4 statistics' cli
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 26 Jan 2016 14:57:17 +0000 (06:57 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 26 Jan 2016 14:57:17 +0000 (06:57 -0800)
commit06da0dafc0718d4324e7450c706fdab40b2fc526
tree1f370725ff853acc47cf561baa4c964e89b1e4a7
parent574970ab20a18ca36001cb31d22eb019aaebb2f6
bgpd: Fix 'show bgp ipv4 vpnv4 statistics' cli

When attempting to use the 'show bgp ipv4 vpnv4 statistics' cli, the safi
choosen is BGP_MPLS_LABELED_VPN which is #defined to 128.  The afi/safi
combination is fed to bgp->rib, which limits the size of the safi to BGP_SAFI_MAX
which is #defined to 5.   The correct value to use is BGP_MPLS_VPN

The bgp code differentiates between the actual safi value for BGP_MPLS_LABELED_VPN
used defined by RFC 4364, to a internal SAFI value used to limit array size.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_route.c