summaryrefslogtreecommitdiff
path: root/interface-definitions/dhcpv6-relay.xml
blob: 15c76a09816262521b6f3d95c72dffe9e8e7e9af (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0"?>
<!-- DHCPv6 relay configuration -->
<interfaceDefinition>
  <node name="service">
    <children>
      <node name="dhcpv6-relay" owner="${vyos_conf_scripts_dir}/dhcpv6_relay.py">
        <properties>
          <help>DHCPv6 Relay Agent parameters</help>
          <priority>900</priority>
        </properties>
        <children>
          <tagNode name="listen-interface">
            <properties>
              <help>Interface for DHCPv6 Relay Agent to listen for requests</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_interfaces.py</script>
              </completionHelp>
            </properties>
            <children>
              <leafNode name="address">
                <properties>
                  <help>IPv6 address on listen-interface listen for requests on</help>
                  <valueHelp>
                    <format>ipv6</format>
                    <description>IPv6 address on listen interface</description>
                  </valueHelp>
                  <constraint>
                    <validator name="ipv6-address"/>
                  </constraint>
                </properties>
              </leafNode>
            </children>
          </tagNode>
          <leafNode name="max-hop-count">
            <properties>
              <help>Maximum hop count for which requests will be processed</help>
              <valueHelp>
                <format>1-255</format>
                <description>Hop count (default: 10)</description>
              </valueHelp>
              <constraint>
                <validator name="numeric" argument="--range 1-255"/>
              </constraint>
              <constraintErrorMessage>max-hop-count must be a value between 1 and 255</constraintErrorMessage>
            </properties>
          </leafNode>
          <tagNode name="upstream-interface">
            <properties>
              <help>Interface for DHCPv6 Relay Agent forward requests out</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_interfaces.py</script>
              </completionHelp>
            </properties>
            <children>
              <leafNode name="address">
                <properties>
                    <help>IPv6 address to forward requests to</help>
                  <valueHelp>
                    <format>ipv6</format>
                    <description>IPv6 address of the DHCP server</description>
                  </valueHelp>
                  <constraint>
                    <validator name="ipv6-address"/>
                  </constraint>
                </properties>
              </leafNode>
            </children>
          </tagNode>
          <leafNode name="use-interface-id-option">
            <properties>
              <help>Option to set DHCPv6 interface-ID option</help>
              <valueless/>
            </properties>
          </leafNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>