summaryrefslogtreecommitdiff
path: root/op-mode-definitions/generate-macsec-key.xml
blob: 003669827db4f5495c2aa0b9701a2dd4083d29f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="generate">
    <children>
      <node name="macsec-key">
        <properties>
          <help>Generate MACsec secure channel key</help>
        </properties>
        <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>
</interfaceDefinition>