From a719a3de6e8b2bb7803e02e7e05ea8e854d6f396 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 29 Nov 2015 04:08:36 +0900 Subject: server/table: use only one rib for multiple route server clients speed up and reduce memory footprint Signed-off-by: ISHIDA Wataru --- server/fsm_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/fsm_test.go') diff --git a/server/fsm_test.go b/server/fsm_test.go index aad9ff07..3b1bedd2 100644 --- a/server/fsm_test.go +++ b/server/fsm_test.go @@ -20,6 +20,7 @@ import ( log "github.com/Sirupsen/logrus" "github.com/osrg/gobgp/config" "github.com/osrg/gobgp/packet" + "github.com/osrg/gobgp/table" "github.com/stretchr/testify/assert" "net" "strconv" @@ -293,7 +294,7 @@ func makePeerAndHandler() (*Peer, *FSMHandler) { capMap: make(map[bgp.BGPCapabilityCode][]bgp.ParameterCapabilityInterface), } - p.fsm = NewFSM(&gConf, &pConf, &Peer{}) + p.fsm = NewFSM(&gConf, &pConf, table.NewRoutingPolicy()) incoming := make(chan *FsmMsg, 4096) p.outgoing = make(chan *bgp.BGPMessage, 4096) -- cgit v1.2.3