summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp_ecmp_topo1
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@users.noreply.github.com>2021-12-02 09:19:45 -0300
committerGitHub <noreply@github.com>2021-12-02 09:19:45 -0300
commit82f7d8cd2c4400f511b945095590a5dd59d59d5e (patch)
treef42d782e70e8f0651e0f41de663876b135aae747 /tests/topotests/bgp_ecmp_topo1
parentd047ba78d257f0e182eea9f0d1b0b4d22a64ce18 (diff)
parent7f9bf69df985ca78bfb69e73ce51ba49001ff6dc (diff)
Merge pull request #9940 from pguibert6WIND/misc_topotests
simplify some topotests config with naming default vrf
Diffstat (limited to 'tests/topotests/bgp_ecmp_topo1')
-rw-r--r--tests/topotests/bgp_ecmp_topo1/r1/summary.txt2
-rw-r--r--tests/topotests/bgp_ecmp_topo1/r1/summary20.txt2
-rw-r--r--tests/topotests/bgp_ecmp_topo1/test_bgp_ecmp_topo1.py6
3 files changed, 2 insertions, 8 deletions
diff --git a/tests/topotests/bgp_ecmp_topo1/r1/summary.txt b/tests/topotests/bgp_ecmp_topo1/r1/summary.txt
index f0929536d3..68de28a35b 100644
--- a/tests/topotests/bgp_ecmp_topo1/r1/summary.txt
+++ b/tests/topotests/bgp_ecmp_topo1/r1/summary.txt
@@ -2,7 +2,7 @@
"ipv4Unicast":{
"routerId":"10.0.255.1",
"as":100,
- "vrfName":"Default",
+ "vrfName":"default",
"peerCount":20,
"peers":{
"10.0.1.101":{
diff --git a/tests/topotests/bgp_ecmp_topo1/r1/summary20.txt b/tests/topotests/bgp_ecmp_topo1/r1/summary20.txt
index 9015f485f8..4895cdbecf 100644
--- a/tests/topotests/bgp_ecmp_topo1/r1/summary20.txt
+++ b/tests/topotests/bgp_ecmp_topo1/r1/summary20.txt
@@ -1,7 +1,7 @@
{
"routerId":"10.0.255.1",
"as":100,
- "vrfName":"Default",
+ "vrfName":"default",
"peerCount":20,
"peers":{
"10.0.1.101":{
diff --git a/tests/topotests/bgp_ecmp_topo1/test_bgp_ecmp_topo1.py b/tests/topotests/bgp_ecmp_topo1/test_bgp_ecmp_topo1.py
index 982a076bfb..96e4bf6ed3 100644
--- a/tests/topotests/bgp_ecmp_topo1/test_bgp_ecmp_topo1.py
+++ b/tests/topotests/bgp_ecmp_topo1/test_bgp_ecmp_topo1.py
@@ -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(