]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
refactor port binding codes
authorYong Sheng Gong <gongysh@unitedstack.com>
Tue, 23 Jul 2013 05:21:24 +0000 (13:21 +0800)
committerYong Sheng Gong <gongysh@unitedstack.com>
Fri, 26 Jul 2013 15:04:51 +0000 (23:04 +0800)
commit76fc0addc985195dc6fddd78c9030cc5d24cfe88
treee2fbc21b77b866b29f39c1344501d46a38b4ddab
parente4ddee8e826b14011efc3631d8b03f25027f3dbb
refactor port binding codes

Bug #1195047

This patch:
1. removes the iteration in get_ports to call extend_dict_binding
2. uses a unified way for plugins to do this kind of stuff

ml2 will enhance the binding so that it can have different binding
for port according to port's host.
mlnx and bigswitch are also exceptions due to the dynamic binding info.

Change-Id: I5a77eb7395e14482a856e033f536f72a1bf82e06
neutron/db/portbindings_base.py [new file with mode: 0644]
neutron/db/portbindings_db.py
neutron/plugins/brocade/NeutronPlugin.py
neutron/plugins/hyperv/hyperv_neutron_plugin.py
neutron/plugins/linuxbridge/lb_neutron_plugin.py
neutron/plugins/ml2/plugin.py
neutron/plugins/nec/nec_plugin.py
neutron/plugins/nicira/NeutronPlugin.py
neutron/plugins/openvswitch/ovs_neutron_plugin.py
neutron/plugins/ryu/ryu_neutron_plugin.py