summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-09 21:44:44 +0100
committerGitHub <noreply@github.com>2022-01-09 21:44:44 +0100
commitdfb2b58e00ea0cafadeb5f63e9f82b4d61580ead (patch)
treea5bd6bf19c6c0de5f261f0144d54d3c451fc479d /interface-definitions
parent897510fe6fdf85ce23699a7aace187433367c2b4 (diff)
parent66d59d9e393c435fa82717d0d918955bae59ba43 (diff)
downloadvyos-1x-dfb2b58e00ea0cafadeb5f63e9f82b4d61580ead.tar.gz
vyos-1x-dfb2b58e00ea0cafadeb5f63e9f82b4d61580ead.zip
Merge pull request #1143 from sever-sever/T1972
vrrp: T1972: Ability to set IP address on not vrrp interface
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/high-availability.xml.in37
1 files changed, 34 insertions, 3 deletions
diff --git a/interface-definitions/high-availability.xml.in b/interface-definitions/high-availability.xml.in
index f46343c76..ee1d70484 100644
--- a/interface-definitions/high-availability.xml.in
+++ b/interface-definitions/high-availability.xml.in
@@ -177,8 +177,37 @@
<valueless/>
</properties>
</leafNode>
+ <node name="track">
+ <properties>
+ <help>Track settings</help>
+ </properties>
+ <children>
+ <leafNode name="exclude-vrrp-interface">
+ <properties>
+ <valueless/>
+ <help>Disable track state of main interface</help>
+ </properties>
+ </leafNode>
+ <leafNode name="interface">
+ <properties>
+ <help>Interface name state check</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py --broadcast</script>
+ </completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Interface name</description>
+ </valueHelp>
+ <constraint>
+ <validator name="interface-name"/>
+ </constraint>
+ <multi/>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
#include <include/vrrp-transition-script.xml.i>
- <leafNode name="address">
+ <tagNode name="address">
<properties>
<help>Virtual IP address</help>
<valueHelp>
@@ -193,9 +222,11 @@
<validator name="ipv4-host"/>
<validator name="ipv6-host"/>
</constraint>
- <multi/>
</properties>
- </leafNode>
+ <children>
+ #include <include/generic-interface-broadcast.xml.i>
+ </children>
+ </tagNode>
<leafNode name="excluded-address">
<properties>
<help>Virtual address (If you need additional IPv4 and IPv6 in same group)</help>