e69c508770
Change-Id: Idf2aeff4939079743dfae567ea15193b971af464
19 lines
615 B
Plaintext
19 lines
615 B
Plaintext
# This file is completely based on one in the neutron repository here:
|
|
# https://opendev.org/openstack/neutron/src/branch/master/devstack/lib/l2_agent
|
|
|
|
NEUTRON_L3_CONF=${NEUTRON_L3_CONF:-$Q_L3_CONF_FILE}
|
|
|
|
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 $NEUTRON_L3_CONF AGENT extensions "$L3_AGENT_EXTENSIONS"
|
|
}
|