summaryrefslogtreecommitdiffhomepage
path: root/test/lib
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-11 05:09:13 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-20 13:14:09 +0900
commit802879087ddf14da1c2dab90d05dd09debb747a7 (patch)
tree564416d955485fdaed137c0836a6a66907ed10b9 /test/lib
parentd62e65f4fe06deca5c4ce7dee957a9b517b80f12 (diff)
server: support route-target constraint
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/base.py4
-rw-r--r--test/lib/gobgp.py8
2 files changed, 7 insertions, 5 deletions
diff --git a/test/lib/base.py b/test/lib/base.py
index d5dfc221..41807cbf 100644
--- a/test/lib/base.py
+++ b/test/lib/base.py
@@ -250,7 +250,7 @@ class BGPContainer(Container):
super(BGPContainer, self).run()
return self.WAIT_FOR_BOOT
- def add_peer(self, peer, passwd=None, evpn=False, is_rs_client=False,
+ def add_peer(self, peer, passwd=None, vpn=False, is_rs_client=False,
policies=None, passive=False,
is_rr_client=False, cluster_id=None,
flowspec=False, bridge='', reload_config=True, as2=False,
@@ -273,7 +273,7 @@ class BGPContainer(Container):
self.peers[peer] = {'neigh_addr': neigh_addr,
'passwd': passwd,
- 'evpn': evpn,
+ 'vpn': vpn,
'flowspec': flowspec,
'is_rs_client': is_rs_client,
'is_rr_client': is_rr_client,
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py
index 36b4b86e..0b352fa5 100644
--- a/test/lib/gobgp.py
+++ b/test/lib/gobgp.py
@@ -212,10 +212,12 @@ class GoBGPContainer(BGPContainer):
else:
Exception('invalid ip address version. {0}'.format(version))
- if info['evpn']:
+ if info['vpn']:
+ afi_safi_list.append({'afi-safi-name': 'l3vpn-ipv4-unicast'})
+ afi_safi_list.append({'afi-safi-name': 'l3vpn-ipv6-unicast'})
afi_safi_list.append({'afi-safi-name': 'l2vpn-evpn'})
- afi_safi_list.append({'afi-safi-name': 'encap'})
- afi_safi_list.append({'afi-safi-name': 'rtc'})
+ afi_safi_list.append({'afi-safi-name': 'rtc',
+ 'route-target-membership': {'deferral-time': 10}})
if info['flowspec']:
afi_safi_list.append({'afi-safi-name': 'ipv4-flowspec'})