diff --git a/bgpd/bgp_vpn.c b/bgpd/bgp_vpn.c index e48eda7231..f922d066c3 100644 --- a/bgpd/bgp_vpn.c +++ b/bgpd/bgp_vpn.c @@ -106,6 +106,9 @@ int show_adj_route_vpn(struct vty *vty, struct peer *peer, if (bgp_node_get_bgp_path_info(rm) == NULL) continue; + if (!attr) + continue; + if (header) { if (use_json) { json_object_int_add(