Merge pull request #10402 from ton31337/fix/capability_extended-nexthop_cli_hidden

bgpd: Show negative form of capability extended-nexthop for interface…
This commit is contained in:
Russ White 2022-01-24 07:35:21 -05:00 committed by GitHub
commit bbc9f23e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16547,18 +16547,15 @@ static void bgp_config_write_peer_global(struct vty *vty, struct bgp *bgp,
/* capability extended-nexthop */ /* capability extended-nexthop */
if (peergroup_flag_check(peer, PEER_FLAG_CAPABILITY_ENHE)) { if (peergroup_flag_check(peer, PEER_FLAG_CAPABILITY_ENHE)) {
if (!peer->conf_if) { if (CHECK_FLAG(peer->flags_invert, PEER_FLAG_CAPABILITY_ENHE))
if (CHECK_FLAG(peer->flags_invert,
PEER_FLAG_CAPABILITY_ENHE))
vty_out(vty, vty_out(vty,
" no neighbor %s capability extended-nexthop\n", " no neighbor %s capability extended-nexthop\n",
addr); addr);
else else if (!peer->conf_if)
vty_out(vty, vty_out(vty,
" neighbor %s capability extended-nexthop\n", " neighbor %s capability extended-nexthop\n",
addr); addr);
} }
}
/* dont-capability-negotiation */ /* dont-capability-negotiation */
if (peergroup_flag_check(peer, PEER_FLAG_DONT_CAPABILITY)) if (peergroup_flag_check(peer, PEER_FLAG_DONT_CAPABILITY))