diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-04-21 15:34:19 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-04-21 15:34:19 +0000 |
commit | 4ab192c7c9d47180560e5d97de23dd1627c8ce11 (patch) | |
tree | 0fc7b99112c340f950c34c178fd1192fc08a9bc4 /interface-definitions | |
parent | 192c8ed2bcadc08917d7751eb521a08b33e5117f (diff) | |
download | vyos-1x-4ab192c7c9d47180560e5d97de23dd1627c8ce11.tar.gz vyos-1x-4ab192c7c9d47180560e5d97de23dd1627c8ce11.zip |
T1237: Failover route add policy for targets checking
Add policy (any-available|all-available) for target checking for failover route
set protocols failover route 192.0.2.55/32 next-hop 192.168.122.1 check policy 'any-available'
set protocols failover route 192.0.2.55/32 next-hop 192.168.122.1 check target '192.168.122.1'
set protocols failover route 192.0.2.55/32 next-hop 192.168.122.1 check target '192.168.122.11'
It depends if we need that all targets must be alive on just one target.
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/protocols-failover.xml.in | 20 |
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> |