From 5d7c1a00df4887558f261e2b284abed426aaa9db Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 9 May 2016 08:40:04 +0000 Subject: server: support afi-safi re-configuration Adding or deleting supported afi-safis will immediately reset BGP sesssion. Changing only prefix-limit configuration won't reset it. Signed-off-by: ISHIDA Wataru --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/server.go b/server/server.go index 44831e3d..4c192a0c 100644 --- a/server/server.go +++ b/server/server.go @@ -2383,7 +2383,7 @@ func (server *BgpServer) handleUpdateNeighbor(c *config.Neighbor) ([]*SenderMsg, } original := peer.fsm.pConf - if !original.Config.Equal(&c.Config) || !original.Transport.Config.Equal(&c.Transport.Config) { + if !original.Config.Equal(&c.Config) || !original.Transport.Config.Equal(&c.Transport.Config) || config.CheckAfiSafisChange(original.AfiSafis, c.AfiSafis) { sub := uint8(bgp.BGP_ERROR_SUB_OTHER_CONFIGURATION_CHANGE) if original.Config.AdminDown != c.Config.AdminDown { sub = bgp.BGP_ERROR_SUB_ADMINISTRATIVE_SHUTDOWN -- cgit v1.2.3