summaryrefslogtreecommitdiff
path: root/interface-definitions/load-balancing-wan.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-04 15:32:43 +0200
committerGitHub <noreply@github.com>2023-05-04 15:32:43 +0200
commitba81c15185d7a59ab0ec6705b53b311b4dda721d (patch)
tree669b9092b127dae24bbc28eb8ffa5c138bfba613 /interface-definitions/load-balancing-wan.xml.in
parentd6364153436505ff6c25ce8b438ad204c927a1d1 (diff)
parenteac5dc2b1f7be06f0d7a4e35f8850a0c1f514fa0 (diff)
downloadvyos-1x-ba81c15185d7a59ab0ec6705b53b311b4dda721d.tar.gz
vyos-1x-ba81c15185d7a59ab0ec6705b53b311b4dda721d.zip
Merge pull request #1973 from sever-sever/T5171
T5171: Use XML for loadbalancing wan instead of old templates
Diffstat (limited to 'interface-definitions/load-balancing-wan.xml.in')
-rw-r--r--interface-definitions/load-balancing-wan.xml.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/interface-definitions/load-balancing-wan.xml.in b/interface-definitions/load-balancing-wan.xml.in
index c1d7e2c67..3a2c111ac 100644
--- a/interface-definitions/load-balancing-wan.xml.in
+++ b/interface-definitions/load-balancing-wan.xml.in
@@ -3,6 +3,7 @@
<node name="load-balancing">
<properties>
<help>Configure load-balancing</help>
+ <priority>900</priority>
</properties>
<children>
<node name="wan" owner="${vyos_conf_scripts_dir}/load-balancing-wan.py">
@@ -59,6 +60,7 @@
<validator name="numeric" argument="--range 1-10"/>
</constraint>
</properties>
+ <defaultValue>1</defaultValue>
</leafNode>
<leafNode name="nexthop">
<properties>
@@ -91,6 +93,7 @@
<validator name="numeric" argument="--range 1-10"/>
</constraint>
</properties>
+ <defaultValue>1</defaultValue>
</leafNode>
<tagNode name="test">
<properties>
@@ -115,6 +118,7 @@
<validator name="numeric" argument="--range 1-30"/>
</constraint>
</properties>
+ <defaultValue>5</defaultValue>
</leafNode>
<leafNode name="target">
<properties>
@@ -151,6 +155,7 @@
<validator name="numeric" argument="--range 1-254"/>
</constraint>
</properties>
+ <defaultValue>1</defaultValue>
</leafNode>
<leafNode name="type">
<properties>
@@ -242,6 +247,7 @@
</constraint>
<constraintErrorMessage>Weight must be between 1 and 255</constraintErrorMessage>
</properties>
+ <defaultValue>1</defaultValue>
</leafNode>
</children>
</tagNode>
@@ -261,6 +267,7 @@
<validator name="numeric" argument="--range 0-4294967295"/>
</constraint>
</properties>
+ <defaultValue>5</defaultValue>
</leafNode>
<leafNode name="period">
<properties>
@@ -284,6 +291,7 @@
<regex>(hour|minute|second)</regex>
</constraint>
</properties>
+ <defaultValue>second</defaultValue>
</leafNode>
<leafNode name="rate">
<properties>
@@ -296,6 +304,7 @@
<validator name="numeric" argument="--range 0-4294967295"/>
</constraint>
</properties>
+ <defaultValue>5</defaultValue>
</leafNode>
<leafNode name="threshold">
<properties>
@@ -315,6 +324,7 @@
<regex>(above|below)</regex>
</constraint>
</properties>
+ <defaultValue>below</defaultValue>
</leafNode>
</children>
</node>
@@ -355,6 +365,7 @@
<validator name="ip-protocol"/>
</constraint>
</properties>
+ <defaultValue>all</defaultValue>
</leafNode>
<node name="source">
<properties>