summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2020-06-05 15:59:43 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-09-11 18:26:24 +0200
commitf54b51035b89eafc04df3f2b225da6d33f20d6b3 (patch)
tree41d4126e2c77253eb4a5120a0bf6d0f1557f3801 /tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py
parenttopotests: add bgp_evpn_rt5 test with vrf netns backend (diff)
downloadfrr-f54b51035b89eafc04df3f2b225da6d33f20d6b3.tar.xz
frr-f54b51035b89eafc04df3f2b225da6d33f20d6b3.zip
topotests: bgp_evpn_rt5 test uses ip link instead of bridge-utils
bridge-utils package is not available on tested distributions. use ip link instead. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py')
-rwxr-xr-xtests/topotests/bgp_evpn_rt5/test_bgp_evpn.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py b/tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py
index 086dcd8cc..bb0b2c9e0 100755
--- a/tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py
+++ b/tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py
@@ -100,14 +100,14 @@ def setup_module(mod):
'ip link set bridge-101 master {}-vrf-101',
'ip link set dev bridge-101 up',
'ip link add name vxlan-101 type vxlan id 101 dstport 4789 dev r2-eth0 local 192.168.100.41',
- 'brctl addif bridge-101 vxlan-101',
+ 'ip link set dev vxlan-101 master bridge-101',
'ip link set vxlan-101 up type bridge_slave learning off flood off mcast_flood off']
cmds_r1_netns_method3 = ['ip link add name vxlan-{1} type vxlan id {1} dstport 4789 dev {0}-eth0 local 192.168.100.21',
'ip link set dev vxlan-{1} netns {0}-vrf-{1}',
'ip netns exec {0}-vrf-{1} ip li set dev lo up',
- 'ip netns exec {0}-vrf-{1} brctl addbr bridge-{1}',
- 'ip netns exec {0}-vrf-{1} brctl addif bridge-{1} vxlan-{1}',
+ 'ip netns exec {0}-vrf-{1} ip link add name bridge-{1} up type bridge stp_state 0',
+ 'ip netns exec {0}-vrf-{1} ip link set dev vxlan-{1} master bridge-{1}',
'ip netns exec {0}-vrf-{1} ip link set bridge-{1} up',
'ip netns exec {0}-vrf-{1} ip link set vxlan-{1} up']