neutron/neutron/plugins/ml2/drivers/macvtap
Kevin Benton 3dddfa56db Macvtap: Check for no original port in is_live_migration
Change 6865f4d9f2 mistakenly
assumed that None would not be present for the 'original'
property on a PortContext. However, this is the default value
for the original field in PortContext, which is what is used
in the construction as part of the _create_port_db process
in ML2.

This resulted in binding failures for the macvtap mech drivers
due to an attribute error in cases like brand new ports.

This patch simply checks for None before trying to determine
if it's a live migration (which it isn't in the case of port creation).

Part of the issue is likely that the FakePortContext in the unit tests
was defaulting to an empty dict which is the not the same behavior as
the real PortContext.

Change-Id: I6659235a70aa4528fd21911c04e651194591e449
Closes-Bug: #1658802
2017-02-17 17:41:17 +00:00
..
agent Merge "Terminate macvtap agent when physical_interface_mapping config not present" 2017-02-06 11:17:03 +00:00
mech_driver Macvtap: Check for no original port in is_live_migration 2017-02-17 17:41:17 +00:00
__init__.py macvtap: Common functions and constants 2016-02-12 09:27:24 +01:00
macvtap_common.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00