diff --git a/src/etc/one-context.d/loc-15-keepalived##vr b/src/etc/one-context.d/loc-15-keepalived##vr index 074649b..b9a4b6c 100755 --- a/src/etc/one-context.d/loc-15-keepalived##vr +++ b/src/etc/one-context.d/loc-15-keepalived##vr @@ -64,6 +64,12 @@ get_check_script() { echo $script } +get_notify_script() { + notify_script="$VROUTER_KEEPALIVED_NOTIFY_SCRIPT" + + echo $notify_script +} + get_iface_var() { var_name="$1_$2" var=$(eval "echo \"\${$var_name}\"") @@ -133,6 +139,16 @@ EOT fi } +gen_notify_script() { + notify_script="$(get_notify_script)" + + if [ -n "$notify_script" ]; then + cat <