summaryrefslogtreecommitdiff
path: root/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-27 14:19:09 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-27 14:19:09 +0200
commit9c3832fc6f6e4f1b326bcd714b6db26fb3188c52 (patch)
tree7921ec92027d2c4994acd5f76812a79f41749d7f /scripts/cli
parent28a6cb6b87734a502218d6e7127124dea9353348 (diff)
downloadvyos-1x-9c3832fc6f6e4f1b326bcd714b6db26fb3188c52.tar.gz
vyos-1x-9c3832fc6f6e4f1b326bcd714b6db26fb3188c52.zip
macsec: test default value for mka priority
Diffstat (limited to 'scripts/cli')
-rwxr-xr-xscripts/cli/test_interfaces_macsec.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/cli/test_interfaces_macsec.py b/scripts/cli/test_interfaces_macsec.py
index 60b7037bb..0f1b6486d 100755
--- a/scripts/cli/test_interfaces_macsec.py
+++ b/scripts/cli/test_interfaces_macsec.py
@@ -53,7 +53,6 @@ class MACsecInterfaceTest(BasicInterfaceTest.BaseTest):
src_intf = 'eth0'
mak_cak = '232e44b7fda6f8e2d88a07bf78a7aff4'
mak_ckn = '40916f4b23e3d548ad27eedd2d10c6f98c2d21684699647d63d41b500dfe8836'
- mak_priority = '100'
replay_window = '64'
self.session.set(self._base_path + [intf, 'security', 'encrypt'])
@@ -77,7 +76,6 @@ class MACsecInterfaceTest(BasicInterfaceTest.BaseTest):
self.session.commit()
self.session.set(self._base_path + [intf, 'security', 'mka', 'ckn', mak_ckn])
- self.session.set(self._base_path + [intf, 'security', 'mka', 'priority', mak_priority])
self.session.set(self._base_path + [intf, 'security', 'replay-window', replay_window])
self.session.commit()
@@ -90,8 +88,9 @@ class MACsecInterfaceTest(BasicInterfaceTest.BaseTest):
tmp = get_config_value(src_intf, 'mka_ckn')
self.assertTrue(mak_ckn in tmp)
+ # check that the default priority of 255 is programmed
tmp = get_config_value(src_intf, 'mka_priority')
- self.assertTrue(mak_priority in tmp)
+ self.assertTrue("255" in tmp)
tmp = get_config_value(src_intf, 'macsec_replay_window')
self.assertTrue(replay_window in tmp)