summaryrefslogtreecommitdiff
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
parentfe9d399a4e78a1637cb3a693e0470eaec1dd5de5 (diff)
downloadvyos-1x-5038eb5856b809f339e14dd932dd64fb1204eefc.tar.gz
vyos-1x-5038eb5856b809f339e14dd932dd64fb1204eefc.zip
macsec: T2023: generate secure channel keys in operation mode
-rw-r--r--debian/control1
-rw-r--r--op-mode-definitions/generate-macsec-key.xml13
2 files changed, 14 insertions, 0 deletions
diff --git a/debian/control b/debian/control
index eec2c087e..a30b80b7a 100644
--- a/debian/control
+++ b/debian/control
@@ -33,6 +33,7 @@ Depends: python3,
python3-netaddr,
python3-zmq,
python3-jmespath,
+ bsdmainutils,
cron,
systemd,
easy-rsa,
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>