summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ospf/ospf-authentication.xml.i
blob: 5ade318de29b8559101dab110f8500d70446e56c (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!-- included start from ospf/ospf-authentication.xml.i -->
<node name="authentication">
  <properties>
    <help>Authentication</help>
  </properties>
  <children>
    <node name="md5">
      <properties>
        <help>MD5 key id</help>
      </properties>
      <children>
        <tagNode name="key-id">
          <properties>
            <help>MD5 key id</help>
            <valueHelp>
              <format>u32:1-255</format>
              <description>MD5 key id</description>
            </valueHelp>
            <constraint>
              <validator name="numeric" argument="--range 1-255"/>
            </constraint>
          </properties>
          <children>
            <leafNode name="md5-key">
              <properties>
                <help>MD5 authentication type</help>
                <valueHelp>
                  <format>txt</format>
                  <description>MD5 Key (16 characters or less)</description>
                </valueHelp>
                <constraint>
                  <regex>^[^[:space:]]{1,16}$</regex>
                </constraint>
                <constraintErrorMessage>Password must be 16 characters or less</constraintErrorMessage>
              </properties>
            </leafNode>
          </children>
        </tagNode>
      </children>
    </node>
    <leafNode name="plaintext-password">
      <properties>
        <help>Plain text password</help>
        <valueHelp>
          <format>txt</format>
          <description>Plain text password (8 characters or less)</description>
        </valueHelp>
        <constraint>
          <regex>^[^[:space:]]{1,8}$</regex>
        </constraint>
        <constraintErrorMessage>Password must be 8 characters or less</constraintErrorMessage>
      </properties>
    </leafNode>
  </children>
</node>
<!-- included end -->