Commit dbedf1b9 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(proxy) virtualip's should be added automatically for listening configuration,...

(proxy) virtualip's should be added automatically for listening configuration, this was the case for some types, but not for all (CARP)

(cherry picked from commit 83488b67)
parent 835729e5
...@@ -37,10 +37,14 @@ ...@@ -37,10 +37,14 @@
{% endfor %} {% endfor %}
{# virtual ip's #} {# virtual ip's #}
{% if helpers.exists('virtualip') %} {% if helpers.exists('virtualip') %}
{% for intf_key,intf_item in virtualip.iteritems() %} {% for intf_item in helpers.toList('virtualip.vip') %}
{% if intf_item.interface == interface and intf_item.mode == 'ipalias' %} {% if intf_item.interface == interface and intf_item.type == 'single' %}
{% if intf_item.subnet.find(':') > -1 %}
{{ listener_config('['+intf_item.subnet+']', OPNsense.proxy.forward.port) }}
{% else %}
{{ listener_config(intf_item.subnet, OPNsense.proxy.forward.port) }} {{ listener_config(intf_item.subnet, OPNsense.proxy.forward.port) }}
{% endif %} {% endif %}
{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment