blob: 61a148e596142b8f461cad86baa877bf053c32a4 [file] [log] [blame]
Ravi Chunduru95c93e22013-07-16 04:18:47 -07001# Neutron firewall plugin
2# ---------------------------
3
4# Save trace setting
Dean Troyere3a91602014-03-28 12:40:56 -05005FW_XTRACE=$(set +o | grep xtrace)
Ravi Chunduru95c93e22013-07-16 04:18:47 -07006set +o xtrace
7
Kyle Mestery20b839f2014-12-08 06:17:27 +00008FWAAS_PLUGIN=neutron_fwaas.services.firewall.fwaas_plugin.FirewallPlugin
Ravi Chunduru95c93e22013-07-16 04:18:47 -07009
Ian Wienandaee18c72014-02-21 15:35:08 +110010function neutron_fwaas_configure_common {
Isaku Yamahata9e136b42013-12-16 15:52:03 +090011 _neutron_service_plugin_class_add $FWAAS_PLUGIN
Ravi Chunduru95c93e22013-07-16 04:18:47 -070012}
13
Ian Wienandaee18c72014-02-21 15:35:08 +110014function neutron_fwaas_configure_driver {
Ravi Chunduru95c93e22013-07-16 04:18:47 -070015 FWAAS_DRIVER_CONF_FILENAME=/etc/neutron/fwaas_driver.ini
Ihar Hrachyshka5893cc72014-12-22 11:49:42 +010016 cp $NEUTRON_FWAAS_DIR/etc/fwaas_driver.ini $FWAAS_DRIVER_CONF_FILENAME
Ravi Chunduru95c93e22013-07-16 04:18:47 -070017
18 iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas enabled True
Kyle Mestery6accb132014-12-08 17:35:15 +000019 iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas driver "neutron_fwaas.services.firewall.drivers.linux.iptables_fwaas.IptablesFwaasDriver"
Ravi Chunduru95c93e22013-07-16 04:18:47 -070020}
21
Ian Wienandaee18c72014-02-21 15:35:08 +110022function neutron_fwaas_stop {
Akihiro Motokiedddb1f2013-12-09 20:21:06 +090023 :
24}
25
Ravi Chunduru95c93e22013-07-16 04:18:47 -070026# Restore xtrace
Dean Troyere3a91602014-03-28 12:40:56 -050027$FW_XTRACE