summaryrefslogtreecommitdiffhomepage
path: root/test/lib
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-06-01 17:37:58 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-06-01 17:37:58 +0000
commit81bc3851b2c1f112f157b98a3cf60757a199a31a (patch)
treef08d47343c287a345001207425c27acc99dfe65e /test/lib
parentaddc3902e85959e525a6e577de174dc1229551ac (diff)
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 <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/gobgp.py7
1 files changed, 4 insertions, 3 deletions
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