The latest version of ofagent
(ie. after blueprint ofagent-port-monitor)
follows IptablesFirewallDriver naming scheme.
Closes-Bug: #1364731
Related: blueprint ofagent-port-monitor
Change-Id: I690aab71b1cb222ffb8b458c90740ba623b0b37e
| ... | ... |
@@ -34,10 +34,18 @@ function neutron_plugin_configure_l3_agent {
|
| 34 | 34 |
iniset $Q_L3_CONF_FILE DEFAULT l3_agent_manager neutron.agent.l3_agent.L3NATAgentWithStateReport |
| 35 | 35 |
} |
| 36 | 36 |
|
| 37 |
+function _neutron_ofagent_configure_firewall_driver {
|
|
| 38 |
+ if [[ "$Q_USE_SECGROUP" == "True" ]]; then |
|
| 39 |
+ iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver neutron.agent.linux.iptables_firewall.IptablesFirewallDriver |
|
| 40 |
+ else |
|
| 41 |
+ iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver neutron.agent.firewall.NoopFirewallDriver |
|
| 42 |
+ fi |
|
| 43 |
+} |
|
| 44 |
+ |
|
| 37 | 45 |
function neutron_plugin_configure_plugin_agent {
|
| 38 | 46 |
# Set up integration bridge |
| 39 | 47 |
_neutron_ovs_base_setup_bridge $OVS_BRIDGE |
| 40 |
- _neutron_ovs_base_configure_firewall_driver |
|
| 48 |
+ _neutron_ofagent_configure_firewall_driver |
|
| 41 | 49 |
|
| 42 | 50 |
# Check a supported openflow version |
| 43 | 51 |
OF_VERSION=`ovs-ofctl --version | grep "OpenFlow versions" | awk '{print $3}' | cut -d':' -f2`
|