summaryrefslogtreecommitdiffhomepage
path: root/server/peer_test.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-08 22:05:35 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-08 22:05:35 +0900
commit856fcbd7bdbb25c5fd7cbe6bfa23246323aa5511 (patch)
tree71fd697ac5dd904f201e81d025f87ecada7c91f1 /server/peer_test.go
parent1c982d8336c9d89732e8a481a8c90b3e7e283f6f (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.go5
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
}