diff options
author | aapostoliuk <108394744+aapostoliuk@users.noreply.github.com> | 2025-05-29 15:35:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-29 14:35:09 +0200 |
commit | a439be2447f5f7e8be19c6f5b86f8dcc3d056385 (patch) | |
tree | 6b1172c4e2b313eb9d9e2e709e3b5f3dcf0c0ed8 /smoketest/scripts/cli/test_system_ip.py | |
parent | 3e5eb3a4bd3935a7473b84558691f77793045021 (diff) | |
download | vyos-1x-a439be2447f5f7e8be19c6f5b86f8dcc3d056385.tar.gz vyos-1x-a439be2447f5f7e8be19c6f5b86f8dcc3d056385.zip |
zebra: T7349: Added importing routes from non to the kernel routing table
* zebra: T7349: Added importing routes from non to the kernel routing table
Added importing routes from non to the kernel routing table.
---------
Co-authored-by: Christian Breunig <christian@breunig.cc>
Diffstat (limited to 'smoketest/scripts/cli/test_system_ip.py')
-rwxr-xr-x | smoketest/scripts/cli/test_system_ip.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_system_ip.py b/smoketest/scripts/cli/test_system_ip.py index 5b6ef2046..a5d1f7743 100755 --- a/smoketest/scripts/cli/test_system_ip.py +++ b/smoketest/scripts/cli/test_system_ip.py @@ -128,5 +128,26 @@ class TestSystemIP(VyOSUnitTestSHIM.TestCase): frrconfig = self.getFRRconfig('', end='') self.assertNotIn(f'no ip nht resolve-via-default', frrconfig) + def test_system_ip_import_table(self): + table_num = '100' + distance = '200' + route_map_in = 'foo-map-in' + self.cli_set(['policy', 'route-map', route_map_in, 'rule', '10', 'action', 'permit']) + self.cli_set(base_path + ['import-table', table_num, 'distance', distance]) + self.cli_set(base_path + ['import-table', table_num, 'route-map', route_map_in]) + + self.cli_commit() + # Verify CLI config applied to FRR + frrconfig = self.getFRRconfig('', end='') + self.assertIn(f'ip import-table {table_num} distance {distance} route-map {route_map_in}', frrconfig) + + self.cli_delete(['policy', 'route-map', route_map_in]) + + self.cli_delete(base_path + ['import-table']) + self.cli_commit() + # Verify CLI config removed to FRR + frrconfig = self.getFRRconfig('', end='') + self.assertNotIn(f'ip import-table {table_num} distance {distance}', frrconfig) + if __name__ == '__main__': unittest.main(verbosity=2) |