diff options
| author | Russ White <russ@riw.us> | 2021-10-19 19:17:35 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-19 19:17:35 -0400 |
| commit | 656b3fdceb8ec8ec044ff82f6265cacc6276679b (patch) | |
| tree | d12ac2068e413b4c24f55180f80095fb2a505c14 /tests/topotests/lib/common_config.py | |
| parent | 4dfa838afa8fee58e153d9ef8b91adc44f53da0f (diff) | |
| parent | 6862166ed513f16e1f6cb59d604a08b03d7a87f5 (diff) | |
Merge pull request #9839 from donaldsharp/test_ospf_summarization
Test ospf summarization
Diffstat (limited to 'tests/topotests/lib/common_config.py')
| -rw-r--r-- | tests/topotests/lib/common_config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py index 1bce3c6bb2..cf8efdea16 100644 --- a/tests/topotests/lib/common_config.py +++ b/tests/topotests/lib/common_config.py @@ -2552,6 +2552,7 @@ def create_route_maps(tgen, input_dict, build=False): nexthop = set_data.setdefault("nexthop", None) origin = set_data.setdefault("origin", None) ext_comm_list = set_data.setdefault("extcommunity", {}) + metrictype = set_data.setdefault("metric-type", {}) # Local Preference if local_preference: @@ -2559,6 +2560,10 @@ def create_route_maps(tgen, input_dict, build=False): "set local-preference {}".format(local_preference) ) + # Metric-Type + if metrictype: + rmap_data.append("set metric-type {}\n".format(metrictype)) + # Metric if metric: rmap_data.append("set metric {} \n".format(metric)) |
