aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/neutron/templates/neutron-l3-agent-wrapper.sh.j2
blob: df4abca8cbe11bac321f4c282204634d702ebe8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -o errexit

{% if not neutron_agents_wrappers | bool %}
{%     if enable_neutron_agent_ha | bool %}
# NOTE(jeffrey4l): Remove all l3 related netns in case of multiple active routers in l3 high available mode.
neutron-netns-cleanup \
        --config-file /etc/neutron/neutron.conf \
        --config-file /etc/neutron/l3_agent.ini \
{%         if enable_neutron_fwaas | bool %}
        --config-file /etc/neutron/fwaas_driver.ini \
{%         endif %}
        --force --agent-type l3
{%     endif %}
{% endif %}

neutron-l3-agent \
        --config-file /etc/neutron/neutron.conf \
        --config-file /etc/neutron/l3_agent.ini{% if enable_neutron_vpnaas | bool %} \
        --config-file /etc/neutron/neutron_vpnaas.conf{% endif %}{% if enable_neutron_fwaas | bool %} \
        --config-file /etc/neutron/fwaas_driver.ini{% endif %}