diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-08-04 15:54:44 +0900 |
---|---|---|
committer | fujita <fujita@fujita-no-MacBook.local> | 2017-09-14 09:22:04 +0900 |
commit | bb7d2f2541d67e7c2660ab80a91cb852e49ce1fb (patch) | |
tree | 4dc594a662f997f37bf2855514978d7bb006975f /server/server.go | |
parent | e82f1ebad2214e16960d08fe2ad85cd9422a187b (diff) |
config: Introduce Family field into AfiSafiState
To reduce the translations of "AfiSafiName" into "bgp.RouteFamily", this
patch introduces "Family" field into "AfiSafiState" and stores the
translated value.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'server/server.go')
-rw-r--r-- | server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go index ac435172..d4b790a1 100644 --- a/server/server.go +++ b/server/server.go @@ -1009,7 +1009,7 @@ func (server *BgpServer) handleFSMMessage(peer *Peer, e *FsmMsg) { rtc = true } for i, a := range peer.fsm.pConf.AfiSafis { - if g, _ := bgp.GetRouteFamily(string(a.Config.AfiSafiName)); f == g { + if a.State.Family == f { peer.fsm.pConf.AfiSafis[i].MpGracefulRestart.State.EndOfRibReceived = true } } |