]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: fix migration for networks without a subnet
authorarmando-migliaccio <armamig@gmail.com>
Tue, 29 Apr 2014 03:24:18 +0000 (20:24 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Tue, 29 Apr 2014 03:26:56 +0000 (20:26 -0700)
commit47e51e7521784f6a2edcfbf71a9aac0237e76e42
tree3f6b366d8ce56509f6fcc1e4c40dd5191209db77
parent930e18e35acdb8f9e28ba8fd061f42883d60cf79
NSX: fix migration for networks without a subnet

In case the network is without a subnet, calling the validation
logic during the report phase leads to an error because the LSN
would have been already allocated during the migration phase.

Bypass the issue by calling the plugin directly, which is what
the validation logic does in the first place.

Closes-bug: #1313997

Change-Id: I14f77ae3b0cc147c4ea1c79e56bdd809de7c76a0
neutron/plugins/vmware/dhcp_meta/migration.py
neutron/tests/unit/vmware/test_dhcpmeta.py