summaryrefslogtreecommitdiff
path: root/interface-definitions/vrrp.xml.in
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2020-04-02 19:49:00 +0300
committerzsdc <taras@vyos.io>2020-04-02 19:49:00 +0300
commitdf52a5fdf592c5bbb51ae0844da5df4e89ff632e (patch)
treee7cda3277760749dbb8968be97606af94a2de669 /interface-definitions/vrrp.xml.in
parent9c605ffae490b6fa6f0c0e310ea88c83eee8be9d (diff)
downloadvyos-1x-df52a5fdf592c5bbb51ae0844da5df4e89ff632e.tar.gz
vyos-1x-df52a5fdf592c5bbb51ae0844da5df4e89ff632e.zip
VRRP: T1820: Added transition-script support for sync-groups
Note: if transition-scripts configured for both vrrp instance and sync group, which are it a member of, both scripts will be executed.
Diffstat (limited to 'interface-definitions/vrrp.xml.in')
-rw-r--r--interface-definitions/vrrp.xml.in39
1 files changed, 39 insertions, 0 deletions
diff --git a/interface-definitions/vrrp.xml.in b/interface-definitions/vrrp.xml.in
index 89d22f79f..120c7d218 100644
--- a/interface-definitions/vrrp.xml.in
+++ b/interface-definitions/vrrp.xml.in
@@ -254,6 +254,45 @@
</completionHelp>
</properties>
</leafNode>
+ <node name="transition-script">
+ <properties>
+ <help>VRRP transition scripts</help>
+ </properties>
+ <children>
+ <leafNode name="master">
+ <properties>
+ <help>Script to run on VRRP state transition to master</help>
+ <constraint>
+ <validator name="script"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="backup">
+ <properties>
+ <help>Script to run on VRRP state transition to backup</help>
+ <constraint>
+ <validator name="script"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="fault">
+ <properties>
+ <help>Script to run on VRRP state transition to fault</help>
+ <constraint>
+ <validator name="script"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="stop">
+ <properties>
+ <help>Script to run on VRRP state transition to stop</help>
+ <constraint>
+ <validator name="script"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
</children>
</tagNode>
</children>