From 81bc3851b2c1f112f157b98a3cf60757a199a31a Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Wed, 1 Jun 2016 17:37:58 +0000 Subject: server: fix active connection regression regression introduced by 4c9cd88c61cb848e36a45657b7cbc63b9c783dc4 also fix test/lib to test configuration without local-address (configure local-address only if neighbor-address is IPv6) Signed-off-by: ISHIDA Wataru --- test/lib/gobgp.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py index 0f86f388..cf72b721 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -268,11 +268,12 @@ class GoBGPContainer(BGPContainer): 'timers': {'config': { 'connect-retry': 10, }}, - 'transport': {'config': { - 'local-address': info['local_addr'].split('/')[0], - }}, + 'transport': {'config': {}}, } + if ':' in info['local_addr']: + n['transport']['config']['local-address'] = info['local_addr'].split('/')[0] + if info['passive']: n['transport']['config']['passive-mode'] = True -- cgit v1.2.3