From 802879087ddf14da1c2dab90d05dd09debb747a7 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 11 Apr 2016 05:09:13 +0000 Subject: server: support route-target constraint Signed-off-by: ISHIDA Wataru --- test/lib/gobgp.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/lib/gobgp.py') 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'}) -- cgit v1.2.3