summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2023-01-23 12:27:31 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2023-01-25 11:14:44 +0000
commit144b6e6e7b6230283ad8eccc374c443bffd74c3f (patch)
tree7efd67281b25d39f220b0751c759d73816c4c720 /interface-definitions
parent1bd69a81dc32fdaa62be27e4f5ae3cfe333f2a26 (diff)
downloadvyos-1x-144b6e6e7b6230283ad8eccc374c443bffd74c3f.tar.gz
vyos-1x-144b6e6e7b6230283ad8eccc374c443bffd74c3f.zip
T1297: VRRP: add garp options to vrrp
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/high-availability.xml.in2
-rw-r--r--interface-definitions/include/vrrp/garp.xml.i74
2 files changed, 76 insertions, 0 deletions
diff --git a/interface-definitions/high-availability.xml.in b/interface-definitions/high-availability.xml.in
index 37cb90a8d..4bb3b1537 100644
--- a/interface-definitions/high-availability.xml.in
+++ b/interface-definitions/high-availability.xml.in
@@ -16,6 +16,7 @@
<help>VRRP global parameters</help>
</properties>
<children>
+ #include <include/vrrp/garp.xml.i>
<leafNode name="startup-delay">
<properties>
<help>Time VRRP startup process (in seconds)</help>
@@ -36,6 +37,7 @@
</properties>
<children>
#include <include/generic-interface-broadcast.xml.i>
+ #include <include/vrrp/garp.xml.i>
<leafNode name="advertise-interval">
<properties>
<help>Advertise interval</help>
diff --git a/interface-definitions/include/vrrp/garp.xml.i b/interface-definitions/include/vrrp/garp.xml.i
new file mode 100644
index 000000000..b321c9591
--- /dev/null
+++ b/interface-definitions/include/vrrp/garp.xml.i
@@ -0,0 +1,74 @@
+<!-- include start from vrrp/garp.xml.i -->
+<node name="garp">
+ <properties>
+ <help>Gratuitous ARP parameters</help>
+ </properties>
+ <children>
+ <leafNode name="master-delay">
+ <properties>
+ <help>Delay for second set of gratuitous ARPs after transition to MASTER</help>
+ <valueHelp>
+ <format>u32:1-1000</format>
+ <description>Delay for second set of gratuitous ARPs after transition to MASTER</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-1000"/>
+ </constraint>
+ </properties>
+ <defaultValue>5</defaultValue>
+ </leafNode>
+ <leafNode name="master-repeat">
+ <properties>
+ <help>Number of gratuitous ARP messages to send at a time after transition to MASTER</help>
+ <valueHelp>
+ <format>u32:1-255</format>
+ <description>Number of gratuitous ARP messages to send at a time after transition to MASTER</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-255"/>
+ </constraint>
+ </properties>
+ <defaultValue>5</defaultValue>
+ </leafNode>
+ <leafNode name="master-refresh">
+ <properties>
+ <help>Minimum time interval for refreshing gratuitous ARPs while MASTER. 0 means no refresh</help>
+ <valueHelp>
+ <format>u32:1-255</format>
+ <description>Minimum time interval for refreshing gratuitous ARPs while MASTER. 0 means no refresh</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-255"/>
+ </constraint>
+ </properties>
+ <defaultValue>5</defaultValue>
+ </leafNode>
+ <leafNode name="master-refresh-repeat">
+ <properties>
+ <help>Number of gratuitous ARP messages to send at a time while MASTER</help>
+ <valueHelp>
+ <format>u32:1-255</format>
+ <description>Number of gratuitous ARP messages to send at a time while MASTER</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-255"/>
+ </constraint>
+ </properties>
+ <defaultValue>1</defaultValue>
+ </leafNode>
+ <leafNode name="interval">
+ <properties>
+ <help>Delay between gratuitous ARP messages sent on an interface</help>
+ <valueHelp>
+ <format>&lt;0.000-1000&gt;</format>
+ <description>Delay between gratuitous ARP messages sent on an interface</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0.000-1000 --float"/>
+ </constraint>
+ </properties>
+ <defaultValue>0</defaultValue>
+ </leafNode>
+ </children>
+</node>
+<!-- include end -->