Skip to content

Commit 8e89adc

Browse files
committed
bgpd: enhanced capability is always turned on for interface based peers
FRR is displaying that the peer enhanced capability command is not turned on when the interface is part of a peer group. Saving the config and then reloading actually turns it off. Fix the code so that FRR does not display the enhanced capability for interface based peers. Fixes: #11108 Signed-off-by: Donald Sharp <[email protected]>
1 parent bf81632 commit 8e89adc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bgpd/bgp_vty.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -16614,7 +16614,8 @@ static void bgp_config_write_peer_global(struct vty *vty, struct bgp *bgp,
1661416614

1661516615
/* capability extended-nexthop */
1661616616
if (peergroup_flag_check(peer, PEER_FLAG_CAPABILITY_ENHE)) {
16617-
if (CHECK_FLAG(peer->flags_invert, PEER_FLAG_CAPABILITY_ENHE))
16617+
if (CHECK_FLAG(peer->flags_invert, PEER_FLAG_CAPABILITY_ENHE) &&
16618+
!peer->conf_if)
1661816619
vty_out(vty,
1661916620
" no neighbor %s capability extended-nexthop\n",
1662016621
addr);

0 commit comments

Comments
 (0)