]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Set vif_details to reflect enable_security_group
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Wed, 2 Jul 2014 15:10:32 +0000 (00:10 +0900)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Sun, 21 Sep 2014 08:41:38 +0000 (17:41 +0900)
commite73f8da072cb41559ecee7f29f864a10db475444
treeeb7d76a0663bdfa93a43f7beb348ad0a6ac5ba77
parenta76af4ade3c751a4372a427989035cf8c32342b0
Set vif_details to reflect enable_security_group

While plugging vif, VIFDriver in Nova follows "ovs_hybrid_plug" and
"port_filter" in "binding:vif_detail" which is passed from Neutron, but
those are always true.  This patch make ML2 OVS mech driver set those
param depends on enable_security_group flag.  It enables users to avoid
ovs_hybrid plugging.

This patch also fixes the same issue in the following plugins/drivers:
  * NEC Plugin
  * BigSwitch Plugin
  * Ryu Plugin
  * ML2 Plugin - OFAgent Mech Driver

Closes-Bug: #1336624
Change-Id: I2b7fb526a6f1b730ad65289307b24fd28b996e1b
neutron/plugins/bigswitch/plugin.py
neutron/plugins/ml2/drivers/mech_ofagent.py
neutron/plugins/ml2/drivers/mech_openvswitch.py
neutron/plugins/nec/nec_plugin.py
neutron/plugins/ryu/ryu_neutron_plugin.py
neutron/tests/unit/_test_extension_portbindings.py
neutron/tests/unit/ml2/_test_mech_agent.py
neutron/tests/unit/ml2/drivers/test_ofagent_mech.py
neutron/tests/unit/ml2/test_mech_openvswitch.py
neutron/tests/unit/nec/test_portbindings.py