Skip to content

Commit a96dc3b

Browse files
committed
tests: Add receivedNexthopGroupId to ignored json attributes
For test bgp_redistribute_table there is a function that removes unwanted json attributes. Let's add receivedNexthopGroupId to that list. Signed-off-by: Donald Sharp <[email protected]>
1 parent 3595c2b commit a96dc3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/topotests/bgp_redistribute_table/test_bgp_redistribute_table.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def _router_json_cmp_exact_filter(router, cmd, expected):
108108
attr.pop("prefixLen")
109109
if "asPath" in attr:
110110
attr.pop("asPath")
111+
if "receivedNexthopGroupId" in attr:
112+
attr.pop("receivedNexthopGroupId")
111113
for nexthop in attr.get("nexthops", []):
112114
if "flags" in nexthop:
113115
nexthop.pop("flags")

0 commit comments

Comments
 (0)