summaryrefslogtreecommitdiffhomepage
path: root/test/lib/gobgp.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/gobgp.py')
-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