summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface/dhcp-options.xml.i
blob: fff83fd5cfdfa7422ac697aa3a30d761cd655f44 (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
<!-- include start from interface/dhcp-options.xml.i -->
<node name="dhcp-options">
  <properties>
    <help>DHCP client settings/options</help>
  </properties>
  <children>
    <leafNode name="client-id">
      <properties>
        <help>Identifier used by client to identify itself to the DHCP server</help>
        <valueHelp>
          <format>txt</format>
          <description>DHCP option string</description>
        </valueHelp>
        <constraint>
          #include <include/constraint/dhcp-client-string-option.xml.i>
        </constraint>
      </properties>
    </leafNode>
    <leafNode name="host-name">
      <properties>
        <help>Override system host-name sent to DHCP server</help>
        <constraint>
          #include <include/constraint/host-name.xml.i>
        </constraint>
        <constraintErrorMessage>Host-name must be alphanumeric and can contain hyphens</constraintErrorMessage>
      </properties>
    </leafNode>
    <leafNode name="mtu">
      <properties>
        <help>Use MTU value from DHCP server - ignore interface setting</help>
        <valueless/>
      </properties>
    </leafNode>
    <leafNode name="vendor-class-id">
      <properties>
        <help>Identify the vendor client type to the DHCP server</help>
        <valueHelp>
          <format>txt</format>
          <description>DHCP option string</description>
        </valueHelp>
        <constraint>
          #include <include/constraint/dhcp-client-string-option.xml.i>
        </constraint>
      </properties>
    </leafNode>
    #include <include/interface/no-default-route.xml.i>
    #include <include/interface/default-route-distance.xml.i>
    <leafNode name="reject">
      <properties>
        <help>IP addresses or subnets from which to reject DHCP leases</help>
        <valueHelp>
          <format>ipv4</format>
          <description>IPv4 address to match</description>
        </valueHelp>
        <valueHelp>
          <format>ipv4net</format>
          <description>IPv4 prefix to match</description>
        </valueHelp>
        <constraint>
          <validator name="ipv4-address"/>
          <validator name="ipv4-prefix"/>
        </constraint>
        <multi/>
      </properties>
    </leafNode>
  </children>
</node>
<!-- include end -->