summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-failover.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-22 21:27:31 +0200
committerGitHub <noreply@github.com>2023-04-22 21:27:31 +0200
commit6b81f048a0cd0dd7e9d407c96426f353317ec38a (patch)
tree26098a594daddbdc58fbe3af6cb8b0aa045f6fb6 /interface-definitions/protocols-failover.xml.in
parent459b3ab03c41f4947eb62c0f1a1db9d3f837dae5 (diff)
parent4ab192c7c9d47180560e5d97de23dd1627c8ce11 (diff)
downloadvyos-1x-6b81f048a0cd0dd7e9d407c96426f353317ec38a.tar.gz
vyos-1x-6b81f048a0cd0dd7e9d407c96426f353317ec38a.zip
Merge pull request #1966 from sever-sever/T1237
T1237: Failover route add policy for targets checking
Diffstat (limited to 'interface-definitions/protocols-failover.xml.in')
-rw-r--r--interface-definitions/protocols-failover.xml.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/interface-definitions/protocols-failover.xml.in b/interface-definitions/protocols-failover.xml.in
index a8c5c717f..c0caec68e 100644
--- a/interface-definitions/protocols-failover.xml.in
+++ b/interface-definitions/protocols-failover.xml.in
@@ -37,6 +37,26 @@
<help>Check target options</help>
</properties>
<children>
+ <leafNode name="policy">
+ <properties>
+ <help>Policy for check targets</help>
+ <completionHelp>
+ <list>any-available all-available</list>
+ </completionHelp>
+ <valueHelp>
+ <format>all-available</format>
+ <description>All targets must be alive</description>
+ </valueHelp>
+ <valueHelp>
+ <format>any-available</format>
+ <description>Any target must be alive</description>
+ </valueHelp>
+ <constraint>
+ <regex>(all-available|any-available)</regex>
+ </constraint>
+ </properties>
+ <defaultValue>any-available</defaultValue>
+ </leafNode>
#include <include/port-number.xml.i>
<leafNode name="target">
<properties>