From 0d4d4dd840e06c18250d73f27de61261ff141944 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 3 Dec 2019 22:01:19 +0100 Subject: T1843: run interface-definitions though GCC preprocessor A lot of XML code is duplicated (VLAN, interface address) for instance. Such XML definitions should be moved to feature.xml.i files and then just pulled in via GCC preprocessor #include definition in e.g. bond or ethernet definitions. This will give us the ability to single-source repeating node definitions as: * Interface Address * Interface Description * Interface Disable * VLAN (both vif-s and vif-c) The .in suffix of the interface-definitions is a marker that those files are input files to the GCC preprocessor. They will be rendered into proper XML files in the build directory. Some node definitions have been reworder to remove escaped double quote occurances which would have been warned about by the GCC preprocessor. --- interface-definitions/dns-domain-name.xml.in | 115 +++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 interface-definitions/dns-domain-name.xml.in (limited to 'interface-definitions/dns-domain-name.xml.in') diff --git a/interface-definitions/dns-domain-name.xml.in b/interface-definitions/dns-domain-name.xml.in new file mode 100644 index 000000000..c16f0b02a --- /dev/null +++ b/interface-definitions/dns-domain-name.xml.in @@ -0,0 +1,115 @@ + + + + + + + + Domain Name Server (DNS) + 400 + + ipv4 + Domain Name Server (DNS) address + + + ipv6 + Domain Name Server (DNS) address + + + + + + + + + + + System host name (default: vyos) + + [A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9] + + + + + + System domain name + + [A-Za-z0-9][-.A-Za-z0-9]* + + + + + + Domain Name Server (DNS) domain completion order + 400 + + + + + DNS domain completion order + + ^[-a-zA-Z0-9.]+$ + + Invalid domain name + + + + + + + + Disable DHCP updates of DNS settings + 300 + + + + + + Map host names to addresses + 400 + + + + + + Host name for static address mapping + + ^[A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9]$ + + invalid hostname + + + + + Alias for this address + + ^.{1,63}$ + + invalid alias hostname, needs to be between 1 and 63 charactes + + + + + + IP Address [REQUIRED] + + ipv4 + IPv4 address + + + ipv6 + IPv6 address + + + + + + + + + + + + + + -- cgit v1.2.3