diff options
author | khramshinr <khramshinr@gmail.com> | 2024-02-08 15:57:39 +0700 |
---|---|---|
committer | khramshinr <khramshinr@gmail.com> | 2024-02-29 15:38:42 +0800 |
commit | 2943d9bb0f65fb9c1a605b9c1906c25ae827a656 (patch) | |
tree | c68f0a8a13d169a0ac0c1e909a360907576bf51d /interface-definitions/high-availability.xml.in | |
parent | fc96c0150eb632e016d7f2ba8adf32a9940c1e8c (diff) | |
download | vyos-1x-2943d9bb0f65fb9c1a605b9c1906c25ae827a656.tar.gz vyos-1x-2943d9bb0f65fb9c1a605b9c1906c25ae827a656.zip |
vrrp: T6020: vrrp health-check script not applied correctly in keepalived.conf
Added health-check to sync-group in CLI
Don't use instance health-check when instance in sync group member
Disallow wrong healtch-check configurations
New smoke test
Diffstat (limited to 'interface-definitions/high-availability.xml.in')
-rw-r--r-- | interface-definitions/high-availability.xml.in | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/interface-definitions/high-availability.xml.in b/interface-definitions/high-availability.xml.in index 59f0f1052..af8f1ba68 100644 --- a/interface-definitions/high-availability.xml.in +++ b/interface-definitions/high-availability.xml.in @@ -344,6 +344,55 @@ </completionHelp> </properties> </leafNode> + <node name="health-check"> + <properties> + <help>Health check</help> + </properties> + <children> + <leafNode name="failure-count"> + <properties> + <help>Health check failure count required for transition to fault</help> + <constraint> + <validator name="numeric" argument="--positive" /> + </constraint> + </properties> + <defaultValue>3</defaultValue> + </leafNode> + <leafNode name="interval"> + <properties> + <help>Health check execution interval in seconds</help> + <constraint> + <validator name="numeric" argument="--positive"/> + </constraint> + </properties> + <defaultValue>60</defaultValue> + </leafNode> + <leafNode name="ping"> + <properties> + <help>ICMP ping health check</help> + <valueHelp> + <format>ipv4</format> + <description>IPv4 ping target address</description> + </valueHelp> + <valueHelp> + <format>ipv6</format> + <description>IPv6 ping target address</description> + </valueHelp> + <constraint> + <validator name="ip-address"/> + </constraint> + </properties> + </leafNode> + <leafNode name="script"> + <properties> + <help>Health check script file</help> + <constraint> + <validator name="script"/> + </constraint> + </properties> + </leafNode> + </children> + </node> #include <include/vrrp-transition-script.xml.i> </children> </tagNode> |