mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 08:32:12 +00:00
bgpd: Do not show neighbor X capability link-local
for unnumbered peering
This capability is enabled by default. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
87a6a0f2ae
commit
e4b14dae7c
@ -19000,8 +19000,11 @@ static void bgp_config_write_peer_global(struct vty *vty, struct bgp *bgp,
|
||||
if (!peergroup_flag_check(peer, PEER_FLAG_CAPABILITY_LINK_LOCAL))
|
||||
vty_out(vty, " no neighbor %s capability link-local\n", addr);
|
||||
} else {
|
||||
if (peergroup_flag_check(peer, PEER_FLAG_CAPABILITY_LINK_LOCAL))
|
||||
if (!peer->conf_if && peergroup_flag_check(peer, PEER_FLAG_CAPABILITY_LINK_LOCAL))
|
||||
vty_out(vty, " neighbor %s capability link-local\n", addr);
|
||||
else if (peer->conf_if &&
|
||||
!peergroup_flag_check(peer, PEER_FLAG_CAPABILITY_LINK_LOCAL))
|
||||
vty_out(vty, " no neighbor %s capability link-local\n", addr);
|
||||
}
|
||||
|
||||
/* dont-capability-negotiation */
|
||||
|
Loading…
Reference in New Issue
Block a user