diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-23 19:54:12 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-23 19:54:12 +0200 |
commit | e12d00325deedb38e92bcce355833d225ab82705 (patch) | |
tree | 031c674ffbabefeed1b5dc34a83c4548577d3b6b /smoketest/scripts/cli/test_protocols_ospf.py | |
parent | 7762e74d928e9f23360798a21c8dd970579365b6 (diff) | |
download | vyos-1x-e12d00325deedb38e92bcce355833d225ab82705.tar.gz vyos-1x-e12d00325deedb38e92bcce355833d225ab82705.zip |
smoketest: ospf: "metric-type" also works for kernel and static redistributed routes
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_ospf.py')
-rwxr-xr-x | smoketest/scripts/cli/test_protocols_ospf.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/smoketest/scripts/cli/test_protocols_ospf.py b/smoketest/scripts/cli/test_protocols_ospf.py index f132fc5b5..3f13eec80 100755 --- a/smoketest/scripts/cli/test_protocols_ospf.py +++ b/smoketest/scripts/cli/test_protocols_ospf.py @@ -221,8 +221,7 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase): for protocol in redistribute: self.cli_set(base_path + ['redistribute', protocol, 'metric', metric]) self.cli_set(base_path + ['redistribute', protocol, 'route-map', route_map]) - if protocol not in ['kernel', 'static']: - self.cli_set(base_path + ['redistribute', protocol, 'metric-type', metric_type]) + self.cli_set(base_path + ['redistribute', protocol, 'metric-type', metric_type]) # commit changes self.cli_commit() @@ -232,10 +231,7 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase): try: self.assertIn(f'router ospf', frrconfig) for protocol in redistribute: - if protocol in ['kernel', 'static']: - self.assertIn(f' redistribute {protocol} metric {metric} route-map {route_map}', frrconfig) - else: - self.assertIn(f' redistribute {protocol} metric {metric} metric-type {metric_type} route-map {route_map}', frrconfig) + self.assertIn(f' redistribute {protocol} metric {metric} metric-type {metric_type} route-map {route_map}', frrconfig) except: log.debug(frrconfig) log.debug(cmd('sudo dmesg')) |