summaryrefslogtreecommitdiff
path: root/interface-definitions/include/accel-ppp/client-ip-pool.xml.i
blob: b30a5ee01abb719a76f718df04f86c3b9530c705 (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
<!-- include start from accel-ppp/client-ip-pool.xml.i -->
<tagNode name="client-ip-pool">
  <properties>
    <help>Client IP pool</help>
    <valueHelp>
      <format>txt</format>
      <description>Name of IP pool</description>
    </valueHelp>
    <constraint>
      #include <include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i>
    </constraint>
  </properties>
  <children>
    <leafNode name="range">
      <properties>
        <help>Range of IP addresses</help>
        <valueHelp>
          <format>ipv4net</format>
          <description>IPv4 prefix</description>
        </valueHelp>
        <valueHelp>
          <format>ipv4range</format>
          <description>IPv4 address range inside /24 network</description>
        </valueHelp>
        <constraint>
          <validator name="ipv4-prefix"/>
          <validator name="ipv4-host"/>
          <validator name="ipv4-range-mask"  argument="-m 24 -r"/>
        </constraint>
        <multi/>
      </properties>
    </leafNode>
    <leafNode name="next-pool">
      <properties>
        <help>Next pool name</help>
        <completionHelp>
          <path>${COMP_WORDS[@]:1:${#COMP_WORDS[@]}-4}</path>
        </completionHelp>
        <valueHelp>
          <format>txt</format>
          <description>Name of IP pool</description>
        </valueHelp>
        <constraint>
          #include <include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i>
        </constraint>
      </properties>
    </leafNode>
  </children>
</tagNode>
<!-- include end -->