mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
tests: bgp_evpn_rt5 reformat configuration commands
Reformat configuration commands in human readable style. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
45a629bf1e
commit
b5519b6bbb
|
@ -387,11 +387,11 @@ def test_evpn_disable_routemap():
|
||||||
|
|
||||||
tgen.gears["r2"].vtysh_cmd(
|
tgen.gears["r2"].vtysh_cmd(
|
||||||
"""
|
"""
|
||||||
configure terminal\n
|
configure terminal
|
||||||
router bgp 65000 vrf vrf-101\n
|
router bgp 65000 vrf vrf-101
|
||||||
address-family l2vpn evpn\n
|
address-family l2vpn evpn
|
||||||
advertise ipv4 unicast\n
|
advertise ipv4 unicast
|
||||||
advertise ipv6 unicast\n
|
advertise ipv6 unicast
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
router = tgen.gears["r1"]
|
router = tgen.gears["r1"]
|
||||||
|
@ -684,7 +684,12 @@ def test_evpn_multipath():
|
||||||
_test_rmac_present(dut)
|
_test_rmac_present(dut)
|
||||||
|
|
||||||
# Enable dataplane logs in FRR
|
# Enable dataplane logs in FRR
|
||||||
dut.vtysh_cmd("configure terminal\ndebug zebra dplane detailed\n")
|
dut.vtysh_cmd(
|
||||||
|
"""
|
||||||
|
configure terminal
|
||||||
|
debug zebra dplane detailed
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
peer = "192.168.0.2" if i % 2 == 0 else "192.168.99.2"
|
peer = "192.168.0.2" if i % 2 == 0 else "192.168.99.2"
|
||||||
|
@ -709,7 +714,12 @@ def test_evpn_multipath():
|
||||||
if re.search(r"(MAC_DELETE|NEIGH_DELETE)", log):
|
if re.search(r"(MAC_DELETE|NEIGH_DELETE)", log):
|
||||||
assert False, "MAC_DELETE or NEIGH_DELETE found in zebra log"
|
assert False, "MAC_DELETE or NEIGH_DELETE found in zebra log"
|
||||||
|
|
||||||
dut.vtysh_cmd("configure terminal\nno debug zebra dplane detailed\n")
|
dut.vtysh_cmd(
|
||||||
|
"""
|
||||||
|
configure terminal
|
||||||
|
no debug zebra dplane detailed
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_shutdown_multipath_check_next_hops():
|
def test_shutdown_multipath_check_next_hops():
|
||||||
|
|
Loading…
Reference in a new issue