diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-16 09:36:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 09:36:18 +0100 |
commit | 8c860fa7c423cc2bd72f9e71a5f8c52f43e02dfa (patch) | |
tree | 4d0c0d0e7517c7cef73134771336672e3c3bcee7 /smoketest/scripts/cli/test_system_ip.py | |
parent | 2ff7d80f44aa1bc8429b18417cd63eb6f7105eef (diff) | |
parent | 0fafc4bcdb9efc03796ddab0832471b11ba1bbe0 (diff) | |
download | vyos-1x-8c860fa7c423cc2bd72f9e71a5f8c52f43e02dfa.tar.gz vyos-1x-8c860fa7c423cc2bd72f9e71a5f8c52f43e02dfa.zip |
Merge pull request #3016 from c-po/nht
T6001: add option to disable next-hop-tracking resolve-via-default
Diffstat (limited to 'smoketest/scripts/cli/test_system_ip.py')
-rwxr-xr-x | smoketest/scripts/cli/test_system_ip.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_system_ip.py b/smoketest/scripts/cli/test_system_ip.py index 567416774..ac8b74236 100755 --- a/smoketest/scripts/cli/test_system_ip.py +++ b/smoketest/scripts/cli/test_system_ip.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2020-2023 VyOS maintainers and contributors +# Copyright (C) 2020-2024 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -120,5 +120,18 @@ class TestSystemIP(VyOSUnitTestSHIM.TestCase): # Commit again self.cli_commit() + def test_system_ip_nht(self): + self.cli_set(base_path + ['nht', 'no-resolve-via-default']) + self.cli_commit() + # Verify CLI config applied to FRR + frrconfig = self.getFRRconfig('', end='', daemon='zebra') + self.assertIn(f'no ip nht resolve-via-default', frrconfig) + + self.cli_delete(base_path + ['nht', 'no-resolve-via-default']) + self.cli_commit() + # Verify CLI config removed to FRR + frrconfig = self.getFRRconfig('', end='', daemon='zebra') + self.assertNotIn(f'no ip nht resolve-via-default', frrconfig) + if __name__ == '__main__': unittest.main(verbosity=2) |