summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-03 20:32:25 +0200
committerGitHub <noreply@github.com>2020-04-03 20:32:25 +0200
commitf91a8869cb1ab3acc605a93789e9310f33dbd979 (patch)
tree770f40915f550759c509b0e8c995672c28f12b6a /interface-definitions
parent7b25dcec95937a3669c02152e934402e5f0c4221 (diff)
parentdf52a5fdf592c5bbb51ae0844da5df4e89ff632e (diff)
downloadvyos-1x-f91a8869cb1ab3acc605a93789e9310f33dbd979.tar.gz
vyos-1x-f91a8869cb1ab3acc605a93789e9310f33dbd979.zip
Merge pull request #296 from zdc/T1820
VRRP: T1820: Added transition-script support for sync-groups
Diffstat (limited to 'interface-definitions')
-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>