summaryrefslogtreecommitdiff
path: root/interface-definitions/include/accel-ppp/client-ip-pool.xml.i
blob: dff574e6c145e576cd5d4dc4e72a5e75189d6bc1 (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
<!-- 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>
      <regex>[-_a-zA-Z0-9.]+</regex>
    </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>
      </properties>
    </leafNode>
    <leafNode name="next-pool">
      <properties>
        <help>Next pool name</help>
        <valueHelp>
          <format>txt</format>
          <description>Name of IP pool</description>
        </valueHelp>
        <constraint>
          <regex>[-_a-zA-Z0-9.]+</regex>
        </constraint>
      </properties>
    </leafNode>
  </children>
</tagNode>
<!-- include end -->