neutron/neutron/plugins/ml2/drivers
Kevin Benton fe3a2139a8 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
(cherry picked from commit 3dddfa56db)
2017-06-02 09:16:03 +00:00
..
agent Merge "Implementation of vlan-aware-vms for Linux Bridge" 2016-09-15 01:10:50 +00:00
l2pop Ensure there are fdb_entries before iterating 2016-09-13 02:12:33 -07:00
linuxbridge Scan for mac through all devices 2017-05-16 14:30:41 -07:00
macvtap Macvtap: Check for no original port in is_live_migration 2017-06-02 09:16:03 +00:00
mech_sriov Allow the other nic to allocate VMs post PCI-PT VM creation. 2017-03-06 14:00:09 -03:30
openvswitch Merge "ovsfw: Raise exception if tag cannot be found in other_config" into stable/newton 2017-04-02 03:13:51 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
helpers.py Values for [ml2]/physical_network_mtus should not be unique 2016-04-07 19:37:28 +03:00
mech_agent.py Downgrade binding skip in mech_agent 2016-09-09 07:31:47 -07:00
type_flat.py debtcollector for globals 2016-08-30 10:18:19 -04:00
type_geneve.py Switch to neutron-lib for model_base 2016-08-31 11:12:18 -04:00
type_gre.py debtcollector for globals 2016-08-30 10:18:19 -04:00
type_local.py Use exceptions from neutron-lib 2016-04-21 21:29:44 -04:00
type_tunnel.py Get rid of custom wrap_db_retry call in sync_allocations 2017-05-25 14:25:57 -07:00
type_vlan.py Fixes DBDeadlock race condition during driver initialization. 2017-03-20 12:26:47 +00:00
type_vxlan.py Switch to neutron-lib for model_base 2016-08-31 11:12:18 -04:00