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:
Philippe Guibert 2021-10-29 14:59:41 +02:00
parent 279ca4ddc2
commit d02ac4c504
3 changed files with 2 additions and 8 deletions

View File

@ -2,7 +2,7 @@
"ipv4Unicast":{
"routerId":"10.0.255.1",
"as":100,
"vrfName":"Default",
"vrfName":"default",
"peerCount":20,
"peers":{
"10.0.1.101":{

View File

@ -1,7 +1,7 @@
{
"routerId":"10.0.255.1",
"as":100,
"vrfName":"Default",
"vrfName":"default",
"peerCount":20,
"peers":{
"10.0.1.101":{

View File

@ -140,12 +140,6 @@ def test_bgp_convergence():
with 'json') and compare with `data` contents.
"""
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)
test_func = functools.partial(