summaryrefslogtreecommitdiffhomepage
path: root/test/lib/gobgp.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-06-01 04:59:11 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-06-01 05:06:37 +0000
commitaddc3902e85959e525a6e577de174dc1229551ac (patch)
tree6e906d49bec9056a68739ea86b65f44d6613faf6 /test/lib/gobgp.py
parent4c9cd88c61cb848e36a45657b7cbc63b9c783dc4 (diff)
server: support peering with ipv6 link local address
fix DialTCPTimeoutWithMD5Sig to handle ipv6 scope-id also update ipv6 test to test this feature Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib/gobgp.py')
-rw-r--r--test/lib/gobgp.py7
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}}