mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-03 21:28:13 +00:00
bgpd: interface based peers should automatically override it's peer group
When a interface based peer is setup and if it is part of a peer group we should ignore this and just use the PEER_FLAG_CAPABILITY_ENHE no matter what. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
b77004d632
commit
dc2f50f378
@ -2974,7 +2974,7 @@ static int peer_conf_interface_get(struct vty *vty, const char *conf_if,
|
||||
if (!CHECK_FLAG(peer->flags_invert, PEER_FLAG_CAPABILITY_ENHE)) {
|
||||
SET_FLAG(peer->flags, PEER_FLAG_CAPABILITY_ENHE);
|
||||
SET_FLAG(peer->flags_invert, PEER_FLAG_CAPABILITY_ENHE);
|
||||
UNSET_FLAG(peer->flags_override, PEER_FLAG_CAPABILITY_ENHE);
|
||||
SET_FLAG(peer->flags_override, PEER_FLAG_CAPABILITY_ENHE);
|
||||
}
|
||||
|
||||
if (peer_group_name) {
|
||||
|
||||
19
bgpd/bgpd.c
19
bgpd/bgpd.c
@ -7020,14 +7020,17 @@ 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 (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 (!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);
|
||||
}
|
||||
}
|
||||
|
||||
/* dont-capability-negotiation */
|
||||
|
||||
@ -9,7 +9,7 @@ class TestFlag(frrtest.TestMultiOut):
|
||||
TestFlag.okfail('peer\\advertisement-interval')
|
||||
TestFlag.okfail('peer\\capability dynamic')
|
||||
TestFlag.okfail('peer\\capability extended-nexthop')
|
||||
TestFlag.okfail('peer\\capability extended-nexthop')
|
||||
#TestFlag.okfail('peer\\capability extended-nexthop')
|
||||
TestFlag.okfail('peer\\description')
|
||||
TestFlag.okfail('peer\\disable-connected-check')
|
||||
TestFlag.okfail('peer\\dont-capability-negotiate')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user