mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 20:22:36 +00:00
topotests: bgp_ecmp_topo1, use default vrf name convention
Simplify the test, and use default vrf name. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
279ca4ddc2
commit
d02ac4c504
@ -2,7 +2,7 @@
|
|||||||
"ipv4Unicast":{
|
"ipv4Unicast":{
|
||||||
"routerId":"10.0.255.1",
|
"routerId":"10.0.255.1",
|
||||||
"as":100,
|
"as":100,
|
||||||
"vrfName":"Default",
|
"vrfName":"default",
|
||||||
"peerCount":20,
|
"peerCount":20,
|
||||||
"peers":{
|
"peers":{
|
||||||
"10.0.1.101":{
|
"10.0.1.101":{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"routerId":"10.0.255.1",
|
"routerId":"10.0.255.1",
|
||||||
"as":100,
|
"as":100,
|
||||||
"vrfName":"Default",
|
"vrfName":"default",
|
||||||
"peerCount":20,
|
"peerCount":20,
|
||||||
"peers":{
|
"peers":{
|
||||||
"10.0.1.101":{
|
"10.0.1.101":{
|
||||||
|
@ -140,12 +140,6 @@ def test_bgp_convergence():
|
|||||||
with 'json') and compare with `data` contents.
|
with 'json') and compare with `data` contents.
|
||||||
"""
|
"""
|
||||||
output = router.vtysh_cmd(cmd, isjson=True)
|
output = router.vtysh_cmd(cmd, isjson=True)
|
||||||
if "ipv4Unicast" in output:
|
|
||||||
output["ipv4Unicast"]["vrfName"] = output["ipv4Unicast"]["vrfName"].replace(
|
|
||||||
"default", "Default"
|
|
||||||
)
|
|
||||||
elif "vrfName" in output:
|
|
||||||
output["vrfName"] = output["vrfName"].replace("default", "Default")
|
|
||||||
return topotest.json_cmp(output, data)
|
return topotest.json_cmp(output, data)
|
||||||
|
|
||||||
test_func = functools.partial(
|
test_func = functools.partial(
|
||||||
|
Loading…
Reference in New Issue
Block a user