Merge pull request #9547 from ton31337/fix/addpath_non_json_broken

bgpd: Drop afi/safi duplicate string notation for AddPath capability
This commit is contained in:
Igor Ryzhov 2021-09-06 12:33:01 +03:00 committed by GitHub
commit 5c2ef87104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13058,11 +13058,7 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
[safi],
PEER_CAP_ADDPATH_AF_TX_ADV))
vty_out(vty,
"advertised %s",
get_afi_safi_str(
afi,
safi,
false));
"advertised");
if (CHECK_FLAG(
p->af_cap
@ -13103,11 +13099,7 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
[safi],
PEER_CAP_ADDPATH_AF_RX_ADV))
vty_out(vty,
"advertised %s",
get_afi_safi_str(
afi,
safi,
false));
"advertised");
if (CHECK_FLAG(
p->af_cap