summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ipv4-address-prefix-range.xml.i
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-07-08 12:42:26 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-07-08 13:15:34 +0000
commitb3eca8c14e77eabee5afe04a49dee0208bc715ee (patch)
tree24cd881d1f71ad55af531440a101a384516cf0a4 /interface-definitions/include/ipv4-address-prefix-range.xml.i
parent44b1bdd3273dce4e74a5474c401ac7107950635b (diff)
downloadvyos-1x-b3eca8c14e77eabee5afe04a49dee0208bc715ee.tar.gz
vyos-1x-b3eca8c14e77eabee5afe04a49dee0208bc715ee.zip
lb-wan: T4518: Add XML for conf mode load-balancing wan
Add XML for configuration mode "load-balancing wan" for the future rewriting this to Python Remove node from Makefile as Python code is not yet completed
Diffstat (limited to 'interface-definitions/include/ipv4-address-prefix-range.xml.i')
-rw-r--r--interface-definitions/include/ipv4-address-prefix-range.xml.i39
1 files changed, 39 insertions, 0 deletions
diff --git a/interface-definitions/include/ipv4-address-prefix-range.xml.i b/interface-definitions/include/ipv4-address-prefix-range.xml.i
new file mode 100644
index 000000000..aadc6aaec
--- /dev/null
+++ b/interface-definitions/include/ipv4-address-prefix-range.xml.i
@@ -0,0 +1,39 @@
+<!-- include start from ipv4-address-prefix-range.xml.i -->
+<leafNode name="address">
+ <properties>
+ <help>IP address, subnet, or range</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>IPv4 address to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv4net</format>
+ <description>IPv4 prefix to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv4range</format>
+ <description>IPv4 address range to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>!ipv4</format>
+ <description>Match everything except the specified address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>!ipv4net</format>
+ <description>Match everything except the specified prefix</description>
+ </valueHelp>
+ <valueHelp>
+ <format>!ipv4range</format>
+ <description>Match everything except the specified range</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv4-prefix"/>
+ <validator name="ipv4-range"/>
+ <validator name="ipv4-address-exclude"/>
+ <validator name="ipv4-prefix-exclude"/>
+ <validator name="ipv4-range-exclude"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- include end -->