From 46c65a4ca37e3603a232225658af1252be1cdbab Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Wed, 1 Sep 2021 18:46:06 +0000 Subject: [PATCH] ifstated: Fix default config template --- roles/ifstated/templates/ifstated.conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/ifstated/templates/ifstated.conf.j2 b/roles/ifstated/templates/ifstated.conf.j2 index b3e4b42..da40910 100644 --- a/roles/ifstated/templates/ifstated.conf.j2 +++ b/roles/ifstated/templates/ifstated.conf.j2 @@ -1,4 +1,4 @@ - -# flush routes when external carp goes up -if carp*.link.up +{% for int in network_vip_interfaces %} +if carp{{ int.vhid }}.link.up run 'route -q flush ; route add default $(cat /etc/mygate)' +{% endfor %}