summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/common_config.py
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2020-04-02 16:17:24 -0700
committerGitHub <noreply@github.com>2020-04-02 16:17:24 -0700
commitdba3453515d5b3dc8c66944fe30adc4bdae5b449 (patch)
treebe6e885dd580da8f8938a6d6b5f21940020d924d /tests/topotests/lib/common_config.py
parent58bc3de3abeff806a9132dbe3e7da614f4627cfd (diff)
parent0a9fe278f626287e0883d26b7ab8bb777ad48931 (diff)
Merge pull request #6130 from ton31337/fix/remove_some_redundant_attributes_from_json
bgpd: Remove deprecated JSON fields for `show bgp ... json`
Diffstat (limited to 'tests/topotests/lib/common_config.py')
-rw-r--r--tests/topotests/lib/common_config.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py
index fc7581b1f2..8a9d2d64c9 100644
--- a/tests/topotests/lib/common_config.py
+++ b/tests/topotests/lib/common_config.py
@@ -1101,9 +1101,9 @@ def create_route_maps(tgen, input_dict, build=False):
"tag": "tag_id"
},
"set": {
- "localpref": 150,
- "med": 30,
- "aspath": {
+ "locPrf": 150,
+ "metric": 30,
+ "path": {
"num": 20000,
"action": "prepend",
},
@@ -1199,10 +1199,10 @@ def create_route_maps(tgen, input_dict, build=False):
set_data = rmap_dict["set"]
ipv4_data = set_data.setdefault("ipv4", {})
ipv6_data = set_data.setdefault("ipv6", {})
- local_preference = set_data.setdefault("localpref",
+ local_preference = set_data.setdefault("locPrf",
None)
- metric = set_data.setdefault("med", None)
- as_path = set_data.setdefault("aspath", {})
+ metric = set_data.setdefault("metric", None)
+ as_path = set_data.setdefault("path", {})
weight = set_data.setdefault("weight", None)
community = set_data.setdefault("community", {})
large_community = set_data.setdefault(