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.

Change-Id: If2ddb77a139440e7908a0ce84d7cc10b62b8f57a
Closes-Bug: #1426121
This commit is contained in:
Salvatore Orlando 2015-02-26 13:16:03 -08:00
parent 2eb68aa2c3
commit b4931bffd4
1 changed files with 10 additions and 6 deletions

View File

@ -135,20 +135,24 @@ class NsxPluginV2(addr_pair_db.AllowedAddressPairsMixin,
self.port_special_owners = [l3_db.DEVICE_OWNER_ROUTER_GW,
l3_db.DEVICE_OWNER_ROUTER_INTF]
self._port_drivers = {
'create': {l3_db.DEVICE_OWNER_ROUTER_GW:
'create': {constants.DEVICE_OWNER_ROUTER_GW:
self._nsx_create_ext_gw_port,
l3_db.DEVICE_OWNER_FLOATINGIP:
constants.DEVICE_OWNER_FLOATINGIP:
self._nsx_create_fip_port,
l3_db.DEVICE_OWNER_ROUTER_INTF:
constants.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},
'delete': {l3_db.DEVICE_OWNER_ROUTER_GW:
'delete': {constants.DEVICE_OWNER_ROUTER_GW:
self._nsx_delete_ext_gw_port,
l3_db.DEVICE_OWNER_ROUTER_INTF:
constants.DEVICE_OWNER_ROUTER_INTF:
self._nsx_delete_router_port,
l3_db.DEVICE_OWNER_FLOATINGIP:
constants.DEVICE_OWNER_DVR_INTERFACE:
self._nsx_delete_router_port,
constants.DEVICE_OWNER_FLOATINGIP:
self._nsx_delete_fip_port,
networkgw_db.DEVICE_OWNER_NET_GW_INTF:
self._nsx_delete_port,