From ccb4f8cdf08dc85198c353a54f8cef4558d0a360 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 21 May 2018 15:08:48 +0900 Subject: 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 --- test/lib/quagga.py | 2 ++ 1 file changed, 2 insertions(+) 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(): -- cgit v1.2.3