summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-05-21 15:08:48 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-05-21 16:33:05 +0900
commitccb4f8cdf08dc85198c353a54f8cef4558d0a360 (patch)
tree1ef0e4c7957833ac9058f967a601e8650d6a4b73 /test
parent107095db1974df4ae1fab0f09d624073219042f7 (diff)
test/lib/quagga: Minimize advertisement-interval
Quagga seems to advertise routes to neighbors by intervals of 30 seconds (eBGP) or 5 seconds (iBGP) by default. Because of this delay, timer in "bgp_confederation_test.py", 60 seconds, can be exceeded when the UPDATE messages need to go through multi ASs. This patch fixes to use minimum advertisement-interval and reduces the time of test cases. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/lib/quagga.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/quagga.py b/test/lib/quagga.py
index 0b5ecdd1..f0981a23 100644
--- a/test/lib/quagga.py
+++ b/test/lib/quagga.py
@@ -204,6 +204,8 @@ class QuaggaBGPContainer(BGPContainer):
if version == 6:
c << 'no bgp default ipv4-unicast'
c << 'neighbor {0} remote-as {1}'.format(n_addr, info['remote_as'])
+ # For rapid convergence
+ c << 'neighbor {0} advertisement-interval 1'.format(n_addr)
if info['is_rs_client']:
c << 'neighbor {0} route-server-client'.format(n_addr)
for typ, p in info['policies'].iteritems():