Use DEVICE_OWNER_DVR_INTERFACE in NSX-mh plugin

The NSX-mh plugin was not explicitly setting a port create/delete
function for this device owner introduced in Juno, thus resulting
in partial loss of functionality in its DVR feature.

Applied from stackforge/vmware-nsx commit id:
b4931bffd43c6e368b0dec203b5384e0dcfb9720

Change-Id: I77dd7765fbe969da9e994fcb4c80d9a78f94e732
Closes-Bug: #1426121
This commit is contained in:
Salvatore Orlando 2015-03-03 14:29:35 -08:00
parent 91a4593346
commit bd5f47c6ab
1 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,8 @@ class NsxPluginV2(addr_pair_db.AllowedAddressPairsMixin,
self._nsx_create_fip_port,
l3_db.DEVICE_OWNER_ROUTER_INTF:
self._nsx_create_router_port,
constants.DEVICE_OWNER_DVR_INTERFACE:
self._nsx_create_router_port,
networkgw_db.DEVICE_OWNER_NET_GW_INTF:
self._nsx_create_l2_gw_port,
'default': self._nsx_create_port},
@ -147,6 +149,8 @@ class NsxPluginV2(addr_pair_db.AllowedAddressPairsMixin,
self._nsx_delete_ext_gw_port,
l3_db.DEVICE_OWNER_ROUTER_INTF:
self._nsx_delete_router_port,
constants.DEVICE_OWNER_DVR_INTERFACE:
self._nsx_delete_router_port,
l3_db.DEVICE_OWNER_FLOATINGIP:
self._nsx_delete_fip_port,
networkgw_db.DEVICE_OWNER_NET_GW_INTF: