]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: "no neighbor 10.13.0.12 peer-group ibgp" does not remove peer 1757/head
authorDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 15 Feb 2018 20:55:43 +0000 (20:55 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 15 Feb 2018 20:55:43 +0000 (20:55 +0000)
commit827ed7076d4761e2c3cd8fb91053b738b0231898
treebe882be87b64c3dc31b83073e4089256e45a0376
parent7abe1e7e0debc8f605bf3f132f639760fddb5802
bgpd: "no neighbor 10.13.0.12 peer-group ibgp" does not remove peer

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
This worked for unnumbered peers but not for numbered peers. This is
before the fix:

router bgp 100
 coalesce-time 1000
 neighbor FOO peer-group
 neighbor FOO remote-as external
 neighbor swp1 interface peer-group FOO
 neighbor 1.1.1.1 peer-group FOO
!
line vty
 exec-timeout 0 0
!
end
cel-redxp-10# wr
Note: this version of vtysh never writes vtysh.conf
Building Configuration...
Integrated configuration saved to /etc/frr/frr.conf
[OK]
cel-redxp-10# conf t
cel-redxp-10(config)# router bgp
cel-redxp-10(config-router)# no neighbor swp1 interface peer-group FOO
cel-redxp-10(config-router)# no neighbor 1.1.1.1 peer-group FOO
cel-redxp-10(config-router)# do show run
Building configuration...

Current configuration:
!
frr version 4.1-dev
frr defaults datacenter
hostname cel-redxp-10
!
service integrated-vtysh-config
!
password cn321
!
log syslog
!
router bgp 100
 coalesce-time 1000
 neighbor FOO peer-group
 neighbor FOO remote-as external
 neighbor 1.1.1.1 remote-as external
 !
 address-family ipv4 unicast
  no neighbor 1.1.1.1 activate
 exit-address-family
!
line vty
 exec-timeout 0 0
!
end
cel-redxp-10(config-router)#

After the fix "no neighbor 1.1.1.1 peer-group FOO" removes the 1.1.1.1
neighbor.
bgpd/bgp_vty.c