summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-20 21:35:46 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-21 11:58:57 +0200
commit5038eb5856b809f339e14dd932dd64fb1204eefc (patch)
tree3d6a619cb3ac34fb05e5555a585176c05da2dde3 /op-mode-definitions
parentfe9d399a4e78a1637cb3a693e0470eaec1dd5de5 (diff)
downloadvyos-1x-5038eb5856b809f339e14dd932dd64fb1204eefc.tar.gz
vyos-1x-5038eb5856b809f339e14dd932dd64fb1204eefc.zip
macsec: T2023: generate secure channel keys in operation mode
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/generate-macsec-key.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/op-mode-definitions/generate-macsec-key.xml b/op-mode-definitions/generate-macsec-key.xml
new file mode 100644
index 000000000..44ded441d
--- /dev/null
+++ b/op-mode-definitions/generate-macsec-key.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="generate">
+ <children>
+ <node name="macsec-key">
+ <properties>
+ <help>Generate MACsec secure channel key</help>
+ </properties>
+ <command>/usr/bin/hexdump -n 16 -e '4/4 "%08x" 1 "\n"' /dev/random</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>