diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-01 02:49:05 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-04 16:46:28 +0900 |
commit | ce1d27ba8c49856c2e67c65f076caf48dbb6765e (patch) | |
tree | 3e97ec845190758c73c0da080300a36a4cb17feb /server/fsm_test.go | |
parent | aa3b0436d20a1d9ed16fee34b323ea6e73ba0c85 (diff) |
server: handle open message only in fsm
we don't need to spread this handling to peer.go and server.go
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm_test.go')
-rw-r--r-- | server/fsm_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/fsm_test.go b/server/fsm_test.go index b5618edd..4eb907f3 100644 --- a/server/fsm_test.go +++ b/server/fsm_test.go @@ -289,9 +289,8 @@ func makePeerAndHandler() (*Peer, *FSMHandler) { pConf := config.Neighbor{} p := &Peer{ - gConf: gConf, - conf: pConf, - capMap: make(map[bgp.BGPCapabilityCode][]bgp.ParameterCapabilityInterface), + gConf: gConf, + conf: pConf, } p.fsm = NewFSM(&gConf, &pConf, table.NewRoutingPolicy()) |