diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-08 22:05:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-08 22:05:35 +0900 |
commit | 856fcbd7bdbb25c5fd7cbe6bfa23246323aa5511 (patch) | |
tree | 71fd697ac5dd904f201e81d025f87ecada7c91f1 /server/peer_test.go | |
parent | 1c982d8336c9d89732e8a481a8c90b3e7e283f6f (diff) |
server: adj-in/out supports route families rather than v4/v6
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/peer_test.go')
-rw-r--r-- | server/peer_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/peer_test.go b/server/peer_test.go index a4c60de7..cceb6992 100644 --- a/server/peer_test.go +++ b/server/peer_test.go @@ -524,8 +524,9 @@ func makePeer(globalConfig config.Global, peerConfig config.Neighbor) *Peer { LocalID: globalConfig.RouterId, Address: peerConfig.NeighborAddress, } - p.adjRib = table.NewAdjRib() - p.rib = table.NewTableManager(p.peerConfig.NeighborAddress.String(), []bgp.RouteFamily{bgp.RF_IPv4_UC, bgp.RF_IPv6_UC}) + rfList := []bgp.RouteFamily{bgp.RF_IPv4_UC, bgp.RF_IPv6_UC} + p.adjRib = table.NewAdjRib(rfList) + p.rib = table.NewTableManager(p.peerConfig.NeighborAddress.String(), rfList) return p } |