summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-21 11:55:26 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-21 11:59:08 +0200
commit5cde2142a25390ee8accfc392d835d2c145a7ecb (patch)
treeb67259ba89a53d73256a0907813ef8f2a9374900
parentf48f19063561639d65b76f241f17f0704ba69644 (diff)
downloadvyos-1x-5cde2142a25390ee8accfc392d835d2c145a7ecb.tar.gz
vyos-1x-5cde2142a25390ee8accfc392d835d2c145a7ecb.zip
macsec: T2023: extend key generator for CAK and CKN in operation mode
CAK - Connectivity Association Key CKN - Connectivity Association Name
-rw-r--r--op-mode-definitions/generate-macsec-key.xml15
1 files changed, 14 insertions, 1 deletions
diff --git a/op-mode-definitions/generate-macsec-key.xml b/op-mode-definitions/generate-macsec-key.xml
index 44ded441d..003669827 100644
--- a/op-mode-definitions/generate-macsec-key.xml
+++ b/op-mode-definitions/generate-macsec-key.xml
@@ -6,7 +6,20 @@
<properties>
<help>Generate MACsec secure channel key</help>
</properties>
- <command>/usr/bin/hexdump -n 16 -e '4/4 "%08x" 1 "\n"' /dev/random</command>
+ <children>
+ <node name="cak">
+ <properties>
+ <help>Generate MACsec connectivity association key (CAK)</help>
+ </properties>
+ <command>/usr/bin/hexdump -n 16 -e '4/4 "%08x" 1 "\n"' /dev/random</command>
+ </node>
+ <node name="ckn">
+ <properties>
+ <help>Generate MACsec connectivity association name (CKN)</help>
+ </properties>
+ <command>/usr/bin/hexdump -n 32 -e '8/4 "%08x" 1 "\n"' /dev/random</command>
+ </node>
+ </children>
</node>
</children>
</node>