aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/neutron/templates/l3_agent.ini.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/neutron/templates/l3_agent.ini.j2')
-rw-r--r--ansible/roles/neutron/templates/l3_agent.ini.j28
1 files changed, 4 insertions, 4 deletions
diff --git a/ansible/roles/neutron/templates/l3_agent.ini.j2 b/ansible/roles/neutron/templates/l3_agent.ini.j2
index 32b0a984c..0422b4d24 100644
--- a/ansible/roles/neutron/templates/l3_agent.ini.j2
+++ b/ansible/roles/neutron/templates/l3_agent.ini.j2
@@ -1,12 +1,12 @@
#jinja2: trim_blocks: False
-{% set vpn_device_driver = 'neutron_vpnaas.services.vpn.device_drivers.strongswan_ipsec.StrongSwanDriver' if kolla_base_distro in ['ubuntu', 'debian'] else 'neutron_vpnaas.services.vpn.device_drivers.libreswan_ipsec.LibreSwanDriver'%}
+{% set vpn_device_driver = 'neutron_vpnaas.services.vpn.device_drivers.strongswan_ipsec.StrongSwanDriver' if kolla_base_distro in ['ubuntu', 'debian'] else 'neutron_vpnaas.services.vpn.device_drivers.libreswan_ipsec.LibreSwanDriver' %}
[DEFAULT]
{% if enable_neutron_dvr | bool %}
-{% if inventory_hostname in groups['network'] %}
+{% if inventory_hostname in groups['network'] %}
agent_mode = dvr_snat
-{% else %}
+{% else %}
agent_mode = {{ neutron_compute_dvr_mode }}
-{% endif %}
+{% endif %}
{% else %}
agent_mode = legacy
{% endif %}