aee18c749b
Check that function calls look like ^function foo {$ in bash8, and fix all existing failures of that check. Add a note to HACKING.rst Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
28 lines
742 B
Plaintext
28 lines
742 B
Plaintext
# Neutron firewall plugin
|
|
# ---------------------------
|
|
|
|
# Save trace setting
|
|
MY_XTRACE=$(set +o | grep xtrace)
|
|
set +o xtrace
|
|
|
|
FWAAS_PLUGIN=neutron.services.firewall.fwaas_plugin.FirewallPlugin
|
|
|
|
function neutron_fwaas_configure_common {
|
|
_neutron_service_plugin_class_add $FWAAS_PLUGIN
|
|
}
|
|
|
|
function neutron_fwaas_configure_driver {
|
|
FWAAS_DRIVER_CONF_FILENAME=/etc/neutron/fwaas_driver.ini
|
|
cp $NEUTRON_DIR/etc/fwaas_driver.ini $FWAAS_DRIVER_CONF_FILENAME
|
|
|
|
iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas enabled True
|
|
iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas driver "neutron.services.firewall.drivers.linux.iptables_fwaas.IptablesFwaasDriver"
|
|
}
|
|
|
|
function neutron_fwaas_stop {
|
|
:
|
|
}
|
|
|
|
# Restore xtrace
|
|
$MY_XTRACE
|