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:
Donatas Abraitis 2025-02-10 23:19:53 +02:00
parent 87a6a0f2ae
commit e4b14dae7c

View File

@ -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 */