summaryrefslogtreecommitdiff
path: root/op-mode-definitions/generate-macsec-key.xml
blob: 40d2b9061f895ad77fac2a22ef93c3c3239dedd3 (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">
        <properties>
          <help>Generate MACsec Key</help>
        </properties>
        <children>
          <node name="mka-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="mka-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>