summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2024-01-09 09:52:07 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2024-01-09 09:52:07 +0000
commit56141ca2165f58dcfd7ef47afcdb1b227827d416 (patch)
tree9db35fffafdcc737609141aed547f2dfe20b31da /data/templates
parentd6b2144b3c017d9fd5b3bf8e69c17de7b80f0fa6 (diff)
downloadvyos-1x-56141ca2165f58dcfd7ef47afcdb1b227827d416.tar.gz
vyos-1x-56141ca2165f58dcfd7ef47afcdb1b227827d416.zip
T1297: vrrp: backport VRRP GARP options to Equuleus
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/vrrp/keepalived.conf.tmpl38
1 files changed, 38 insertions, 0 deletions
diff --git a/data/templates/vrrp/keepalived.conf.tmpl b/data/templates/vrrp/keepalived.conf.tmpl
index 4bbd56584..4eba3fb16 100644
--- a/data/templates/vrrp/keepalived.conf.tmpl
+++ b/data/templates/vrrp/keepalived.conf.tmpl
@@ -12,6 +12,25 @@ global_defs {
{% if global_parameters.version is defined %}
vrrp_version {{ global_parameters.version }}
{% endif %}
+
+{% if global_parameters.garp is defined %}
+{% if global_parameters.garp.interval is defined %}
+ vrrp_garp_interval {{ global_parameters.garp.interval }}
+{% endif %}
+{% if global_parameters.garp.master_delay is defined %}
+ vrrp_garp_master_delay {{ global_parameters.garp.master_delay }}
+{% endif %}
+{% if global_parameters.garp.master_refresh is defined %}
+ vrrp_garp_master_refresh {{ global_parameters.garp.master_refresh }}
+{% endif %}
+{% if global_parameters.garp.master_refresh_repeat is defined %}
+ vrrp_garp_master_refresh_repeat {{ global_parameters.garp.master_refresh_repeat }}
+{% endif %}
+{% if global_parameters.garp.master_repeat is defined %}
+ vrrp_garp_master_repeat {{ global_parameters.garp.master_repeat }}
+{% endif %}
+{% endif %}
+
{% endif %}
notify_fifo /run/keepalived/keepalived_notify_fifo
notify_fifo_script /usr/libexec/vyos/system/keepalived-fifo.py
@@ -36,6 +55,25 @@ vrrp_instance {{ name }} {
virtual_router_id {{ group_config.vrid }}
priority {{ group_config.priority }}
advert_int {{ group_config.advertise_interval }}
+
+{% if group_config.garp is defined %}
+{% if group_config.garp.interval is defined %}
+ garp_interval {{ group_config.garp.interval }}
+{% endif %}
+{% if group_config.garp.master_delay is defined %}
+ garp_master_delay {{ group_config.garp.master_delay }}
+{% endif %}
+{% if group_config.garp.master_repeat is defined %}
+ garp_master_repeat {{ group_config.garp.master_repeat }}
+{% endif %}
+{% if group_config.garp.master_refresh is defined %}
+ garp_master_refresh {{ group_config.garp.master_refresh }}
+{% endif %}
+{% if group_config.garp.master_refresh_repeat is defined %}
+ garp_master_refresh_repeat {{ group_config.garp.master_refresh_repeat }}
+{% endif %}
+{% endif %}
+
{% if group_config.track is defined and group_config.track.exclude_vrrp_interface is defined %}
dont_track_primary
{% endif %}