Skip to content

Commit

Permalink
bgpd: enhanced capability is always turned on for interface based peers
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
donaldsharp committed May 4, 2022
1 parent bf81632 commit 8e89adc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -16614,7 +16614,8 @@ 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))
if (CHECK_FLAG(peer->flags_invert, PEER_FLAG_CAPABILITY_ENHE) &&
!peer->conf_if)
vty_out(vty,
" no neighbor %s capability extended-nexthop\n",
addr);
Expand Down

0 comments on commit 8e89adc

Please sign in to comment.