]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: enhanced capability is always turned on for interface based peers
authorDonald Sharp <sharpd@nvidia.com>
Tue, 3 May 2022 16:51:21 +0000 (12:51 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 4 May 2022 11:51:14 +0000 (07:51 -0400)
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 <sharpd@nvidia.com>
bgpd/bgp_vty.c

index 0cbb341ff3910afe7e1ed7c1024ce9c3fdc0fde8..5501ec46b77c58928b529f55cee804a5839c4153 100644 (file)
@@ -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);