blob: 492741f112c540ae2a960c4f9ac7c9bd21cfcd17 (
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
|
<?xml version="1.0"?>
<interfaceDefinition>
<node name="system">
<children>
<node name="static-host-mapping" owner="${vyos_conf_scripts_dir}/system_host-name.py">
<properties>
<help>Map host names to addresses</help>
<priority>400</priority>
</properties>
<children>
<tagNode name="host-name">
<properties>
<help>Host name for static address mapping</help>
<constraint>
#include <include/constraint/host-name.xml.i>
</constraint>
<constraintErrorMessage>Host-name must be alphanumeric and can contain hyphens</constraintErrorMessage>
</properties>
<children>
<leafNode name="alias">
<properties>
<help>Alias for this address</help>
<constraint>
<regex>.{1,63}</regex>
</constraint>
<constraintErrorMessage>invalid alias hostname, needs to be between 1 and 63 charactes</constraintErrorMessage>
<multi />
</properties>
</leafNode>
<leafNode name="inet">
<properties>
<help>IP Address</help>
<valueHelp>
<format>ipv4</format>
<description>IPv4 address</description>
</valueHelp>
<valueHelp>
<format>ipv6</format>
<description>IPv6 address</description>
</valueHelp>
<constraint>
<validator name="ip-address"/>
</constraint>
<multi/>
</properties>
</leafNode>
</children>
</tagNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
|