diff options
author | Yuxiang Zhu <vfreex@gmail.com> | 2023-01-07 17:15:33 +0800 |
---|---|---|
committer | Yuxiang Zhu <vfreex@gmail.com> | 2023-01-07 20:02:27 +0800 |
commit | d281cf5a26a5bb73eff432307dde3d5a263f5045 (patch) | |
tree | 2331e4eaf311cdf99b0d247479d014ad1b7e9168 /smoketest/scripts/cli | |
parent | 662bae181cdff07a2472d7121d18ae37d380e062 (diff) | |
download | vyos-1x-d281cf5a26a5bb73eff432307dde3d5a263f5045.tar.gz vyos-1x-d281cf5a26a5bb73eff432307dde3d5a263f5045.zip |
T4920: ospf: Fix `passive-interface default` option
`passive_interface` is a leaf node. Also adds a smoketest.
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-x | smoketest/scripts/cli/test_protocols_ospf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_ospf.py b/smoketest/scripts/cli/test_protocols_ospf.py index 339713bf6..7ffe642f2 100755 --- a/smoketest/scripts/cli/test_protocols_ospf.py +++ b/smoketest/scripts/cli/test_protocols_ospf.py @@ -74,6 +74,7 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase): self.cli_set(base_path + ['parameters', 'rfc1583-compatibility']) self.cli_set(base_path + ['log-adjacency-changes', 'detail']) self.cli_set(base_path + ['default-metric', metric]) + self.cli_set(base_path + ['passive-interface', 'default']) # commit changes self.cli_commit() @@ -88,6 +89,7 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase): self.assertIn(f' timers throttle spf 200 1000 10000', frrconfig) # defaults self.assertIn(f' capability opaque', frrconfig) self.assertIn(f' default-metric {metric}', frrconfig) + self.assertIn(f' passive-interface default', frrconfig) def test_ospf_03_access_list(self): |