neutron-fwaas/devstack/lib/l3_agent
Nate Johnston a66f3a68bf Add devstack plugin support for fwaas v2
This sets up a new devstack keyword - q-fwaas-v1 - in addition to the
existing q-fwaas plugin.  The q-fwaas keyword configures the devstack
plugin to support FWaaS v2.  FWaaS v2 is the future, and should be the
default for development at this point.  But the new keyword, q-fwaas-v1,
will set things up for FWaaS v1, and there is also q-fwaas-v2 to
explicitly select FWaaS v2.

Also ensure that /etc/neutron/policy.d gets set up for FWaaS
policy.json.

Depends-On: I88be1670a42fcca4aba3b643a1c5a072ce0d1035
Needed-By: I07a4e5a54c0ad862de791b655445e01f805981e4
Change-Id: If35ca26028ddedcf1bc22dd8749cb11c69a1ccbb
2016-09-23 19:38:29 +00:00

17 lines
558 B
Plaintext

# This file is completely based on one in the neutron repository here:
# http://git.openstack.org/cgit/openstack/neutron/tree/devstack/lib/l2_agent
function plugin_agent_add_l3_agent_extension {
local l3_agent_extension=$1
if [[ -z "$L3_AGENT_EXTENSIONS" ]]; then
L3_AGENT_EXTENSIONS=$l3_agent_extension
elif [[ ! ,${L3_AGENT_EXTENSIONS}, =~ ,${l3_agent_extension}, ]]; then
L3_AGENT_EXTENSIONS+=",$l3_agent_extension"
fi
}
function configure_l3_agent {
iniset $Q_L3_CONF_FILE AGENT extensions "$L3_AGENT_EXTENSIONS"
}