summaryrefslogtreecommitdiff
path: root/src/conf_mode/vrrp.py
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 /src/conf_mode/vrrp.py
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 'src/conf_mode/vrrp.py')
-rwxr-xr-xsrc/conf_mode/vrrp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conf_mode/vrrp.py b/src/conf_mode/vrrp.py
index b17f1ce82..b206f0d11 100755
--- a/src/conf_mode/vrrp.py
+++ b/src/conf_mode/vrrp.py
@@ -227,6 +227,12 @@ def get_config():
if conntrack_sync_group == sync_group_name:
sync_group["conntrack_sync"] = True
+ # add transition script configuration
+ sync_group["master_script"] = config.return_value("transition-script master")
+ sync_group["backup_script"] = config.return_value("transition-script backup")
+ sync_group["fault_script"] = config.return_value("transition-script fault")
+ sync_group["stop_script"] = config.return_value("transition-script stop")
+
sync_groups.append(sync_group)
# create a file with dict with proposed configuration