]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Export portinfo thru portbinding ext in NEC plugin
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Wed, 21 Aug 2013 06:43:19 +0000 (15:43 +0900)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Tue, 3 Sep 2013 00:28:26 +0000 (09:28 +0900)
commit99310d51743eaef8c57c0ab0d8e4eeef0ea63f50
tree3ab3414ddf53846c16fd966cc0bf67dbf3885d00
parent795155c743e269e8b4c600add3c4d6b21957f2e0
Export portinfo thru portbinding ext in NEC plugin

blueprint nec-port-binding

* Add host-id support in port-binding extension.
* Expose portinfo thourgh binding:profile attr in a port.
  portinfo is a mapping between neutron port id and OpenFlow switch
  physical information (datapath_id and port_no)

It changes the following in portinfo db model
* Add cascade on delete to delete an associated portinfo
  when deleting the port.
* Use joined query for portinfo model to retrieve an associated
  portinfo when querying a port.

Change-Id: Id88d93dc0770a1290714436324b1b53c0b023eeb
neutron/db/migration/alembic_migrations/versions/2a3bae1ceb8_nec_port_binding.py [new file with mode: 0644]
neutron/plugins/nec/common/exceptions.py
neutron/plugins/nec/db/models.py
neutron/plugins/nec/nec_plugin.py
neutron/tests/unit/nec/test_db.py
neutron/tests/unit/nec/test_nec_plugin.py
neutron/tests/unit/nec/test_ofc_manager.py
neutron/tests/unit/nec/test_portbindings.py [new file with mode: 0644]