bgpd: get rid of 'unknown' in show safi (broken in earlier merge)

Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
Lou Berger 2017-02-02 21:35:24 -05:00
parent f799a22aa7
commit d08aa468d7

View File

@ -10170,7 +10170,9 @@ bgp_show_summary_afi_safi (struct vty *vty, struct bgp *bgp, int afi, int safi,
if (safi == SAFI_MPLS_VPN) /* handle special cases to match zebra.h */
safi = SAFI_ENCAP;
else
safi++;
safi++;
if (safi == SAFI_RESERVED_3) /* handle special cases to match zebra.h */
safi++;
if (! safi_wildcard)
safi = SAFI_MAX;
}