diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-02-17 09:22:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 09:22:38 -0500 |
commit | b14e91cb5547c8e3b9cc511aeb71d189f56cd55d (patch) | |
tree | 9bbb418f5740b0f62f7024fec369a3f98297df12 /interface-definitions/vrrp.xml.in | |
parent | 267818cb247f66dce4509b8e187a0ead7f1bcd97 (diff) | |
parent | b99432ee2dc84a1d8cef59ef534392867d10de1e (diff) | |
download | vyos-1x-b14e91cb5547c8e3b9cc511aeb71d189f56cd55d.tar.gz vyos-1x-b14e91cb5547c8e3b9cc511aeb71d189f56cd55d.zip |
Merge pull request #1224 from sever-sever/T1972-equ
vrrp: T1972: Ability to set IP address on not vrrp interface
Diffstat (limited to 'interface-definitions/vrrp.xml.in')
-rw-r--r-- | interface-definitions/vrrp.xml.in | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/interface-definitions/vrrp.xml.in b/interface-definitions/vrrp.xml.in index b58cf735c..337a0bbc9 100644 --- a/interface-definitions/vrrp.xml.in +++ b/interface-definitions/vrrp.xml.in @@ -188,6 +188,35 @@ <help>Use VRRP virtual MAC address as per RFC3768</help> </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> <node name="transition-script"> <properties> <help>VRRP transition scripts</help> @@ -233,7 +262,7 @@ </leafNode> </children> </node> - <leafNode name="virtual-address"> + <tagNode name="virtual-address"> <properties> <help>Virtual address (IPv4 or IPv6, but they must not be mixed in one group)</help> <valueHelp> @@ -249,9 +278,11 @@ <validator name="ipv6-host"/> </constraint> <constraintErrorMessage>Virtual address must be a valid IPv4 or IPv6 address with prefix length (e.g. 192.0.2.3/24 or 2001:db8:ff::10/64)</constraintErrorMessage> - <multi/> </properties> - </leafNode> + <children> + #include <include/generic-interface-broadcast.xml.i> + </children> + </tagNode> <leafNode name="virtual-address-excluded"> <properties> <help>Virtual address (If you need additional IPv4 and IPv6 in same group)</help> |