Ravi Chunduru | 95c93e2 | 2013-07-16 04:18:47 -0700 | [diff] [blame] | 1 | # Neutron firewall plugin |
| 2 | # --------------------------- |
| 3 | |
| 4 | # Save trace setting |
| 5 | MY_XTRACE=$(set +o | grep xtrace) |
| 6 | set +o xtrace |
| 7 | |
| 8 | FWAAS_PLUGIN=neutron.services.firewall.fwaas_plugin.FirewallPlugin |
| 9 | |
| 10 | function neutron_fwaas_configure_common() { |
Isaku Yamahata | 9e136b4 | 2013-12-16 15:52:03 +0900 | [diff] [blame^] | 11 | _neutron_service_plugin_class_add $FWAAS_PLUGIN |
Ravi Chunduru | 95c93e2 | 2013-07-16 04:18:47 -0700 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | function neutron_fwaas_configure_driver() { |
| 15 | FWAAS_DRIVER_CONF_FILENAME=/etc/neutron/fwaas_driver.ini |
| 16 | cp $NEUTRON_DIR/etc/fwaas_driver.ini $FWAAS_DRIVER_CONF_FILENAME |
| 17 | |
| 18 | iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas enabled True |
| 19 | iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas driver "neutron.services.firewall.drivers.linux.iptables_fwaas.IptablesFwaasDriver" |
| 20 | } |
| 21 | |
| 22 | # Restore xtrace |
| 23 | $MY_XTRACE |