summaryrefslogtreecommitdiffhomepage
path: root/test/lib/gobgp.py
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/gobgp.py
parentd62e65f4fe06deca5c4ce7dee957a9b517b80f12 (diff)
server: support route-target constraint
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/lib/gobgp.py')
-rw-r--r--test/lib/gobgp.py8
1 files changed, 5 insertions, 3 deletions
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'})