mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 13:17:49 +00:00
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:
commit
bbc9f23e0c
@ -16547,17 +16547,14 @@ static void bgp_config_write_peer_global(struct vty *vty, struct bgp *bgp,
|
||||
|
||||
/* capability extended-nexthop */
|
||||
if (peergroup_flag_check(peer, PEER_FLAG_CAPABILITY_ENHE)) {
|
||||
if (!peer->conf_if) {
|
||||
if (CHECK_FLAG(peer->flags_invert,
|
||||
PEER_FLAG_CAPABILITY_ENHE))
|
||||
vty_out(vty,
|
||||
" no neighbor %s capability extended-nexthop\n",
|
||||
addr);
|
||||
else
|
||||
vty_out(vty,
|
||||
" neighbor %s capability extended-nexthop\n",
|
||||
addr);
|
||||
}
|
||||
if (CHECK_FLAG(peer->flags_invert, PEER_FLAG_CAPABILITY_ENHE))
|
||||
vty_out(vty,
|
||||
" no neighbor %s capability extended-nexthop\n",
|
||||
addr);
|
||||
else if (!peer->conf_if)
|
||||
vty_out(vty,
|
||||
" neighbor %s capability extended-nexthop\n",
|
||||
addr);
|
||||
}
|
||||
|
||||
/* dont-capability-negotiation */
|
||||
|
Loading…
Reference in New Issue
Block a user