diff options
Diffstat (limited to 'test/lib/gobgp.py')
-rw-r--r-- | test/lib/gobgp.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py index 7627fd50..0f86f388 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -267,11 +267,14 @@ class GoBGPContainer(BGPContainer): 'afi-safis': afi_safi_list, 'timers': {'config': { 'connect-retry': 10, - }}, + }}, + 'transport': {'config': { + 'local-address': info['local_addr'].split('/')[0], + }}, } if info['passive']: - n['transport'] = {'config': {'passive-mode': True}} + n['transport']['config']['passive-mode'] = True if info['is_rs_client']: n['route-server'] = {'config': {'route-server-client': True}} |