]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Encapsulate some port properties in the PortContext
authorarmando-migliaccio <armamig@gmail.com>
Fri, 18 Jul 2014 00:22:49 +0000 (17:22 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Thu, 24 Jul 2014 23:40:59 +0000 (16:40 -0700)
commitfdee7801248b5605112e5e2ce0f06f8a5e9ecc6b
treec2b3a4c59e58274a84ff154ae9fc4088919043ee
parenta2fff6ee728db57f0e862548aac9296899ef0fc7
Encapsulate some port properties in the PortContext

Bindings to host or status may need further encapsulation
to avoid exposing mechanism drivers to underlying DB model
details. This was particularly true in the case of the
l2pop mech driver.

As a result, some docstrings were reworded, and the newly
introduced properties used directly in the mech drivers.

Partially-implements: blueprint neutron-ovs-dvr
Supports blueprint: ml2-hierarchical-port-binding

Change-Id: If2a373ef04d19b164585fb4bde4fe6e0cfaf43be
neutron/plugins/ml2/driver_api.py
neutron/plugins/ml2/driver_context.py
neutron/plugins/ml2/drivers/arista/mechanism_arista.py
neutron/plugins/ml2/drivers/cisco/apic/mechanism_apic.py
neutron/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py
neutron/plugins/ml2/drivers/l2pop/mech_driver.py
neutron/tests/unit/ml2/_test_mech_agent.py
neutron/tests/unit/ml2/drivers/arista/test_arista_mechanism_driver.py
neutron/tests/unit/ml2/drivers/cisco/apic/test_cisco_apic_mechanism_driver.py