summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-20 08:03:54 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-21 15:37:11 +0900
commitc6ddfb1d8ecc5944a775a458fbce648713ae3b02 (patch)
tree74b7b07a95211518df1b5225c76f79c813defef8 /test
parent8ab34acd769fbeb1647bf5161f349388df73c013 (diff)
table: use received time as tie-breaker
older path get preference can be disabled by `global.route-selection-options.external-compare-router-id = true` close #806 Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test')
-rw-r--r--test/lib/gobgp.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py
index 0b352fa5..b123369e 100644
--- a/test/lib/gobgp.py
+++ b/test/lib/gobgp.py
@@ -201,7 +201,13 @@ class GoBGPContainer(BGPContainer):
self._create_config_zebra()
def _create_config_bgp(self):
- config = {'global': {'config': {'as': self.asn, 'router-id': self.router_id}}}
+ config = {'global': {'config': {'as': self.asn, 'router-id': self.router_id},
+ 'route-selection-options':{
+ 'config': {
+ 'external-compare-router-id': True,
+ },
+ },
+ }}
for peer, info in self.peers.iteritems():
afi_safi_list = []
version = netaddr.IPNetwork(info['neigh_addr']).version