The following commands were causing bgpd to crash when vpnv4/vpnv6 static
routes are configured:
bgpd aborted: vtysh -c "show ip bgp view all ipv4 vpn json"
bgpd aborted: vtysh -c "show ip bgp view all ipv4 vpn"
bgpd aborted: vtysh -c "show ip bgp view all ipv6 vpn json"
bgpd aborted: vtysh -c "show ip bgp view all ipv6 vpn"
bgpd aborted: vtysh -c "show ip bgp vrf all ipv4 vpn json"
bgpd aborted: vtysh -c "show ip bgp vrf all ipv4 vpn"
bgpd aborted: vtysh -c "show ip bgp vrf all ipv6 vpn json"
bgpd aborted: vtysh -c "show ip bgp vrf all ipv6 vpn"
bgpd aborted: vtysh -c "show bgp view all ipv4 vpn json"
bgpd aborted: vtysh -c "show bgp view all ipv4 vpn"
bgpd aborted: vtysh -c "show bgp view all ipv6 vpn json"
bgpd aborted: vtysh -c "show bgp view all ipv6 vpn"
bgpd aborted: vtysh -c "show bgp vrf all ipv4 vpn json"
bgpd aborted: vtysh -c "show bgp vrf all ipv4 vpn"
bgpd aborted: vtysh -c "show bgp vrf all ipv6 vpn json"
bgpd aborted: vtysh -c "show bgp vrf all ipv6 vpn"
Problem found with the CLI fuzzer.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
{
struct listnode *node, *nnode;
struct bgp *bgp;
- struct bgp_table *table;
int is_first = 1;
if (use_json)
? "Default" : bgp->name,
VTY_NEWLINE);
}
- table = bgp->rib[afi][safi];
- bgp_show_table (vty, bgp, table,
- bgp_show_type_normal, NULL, use_json);
+ bgp_show (vty, bgp, afi, safi, bgp_show_type_normal, NULL, use_json);
}