DVR:Remove unwanted check in _get_dvr_service_port_hostid

There is a check in _get_dvr_service_port_hostid to verify
if the port belongs to dvr service port or an agent gateway
port.

There is no need to check for the agent gateway port host.
This might be a left over from the previous cycle cleanup.

This patch removes the unwanted check.

Change-Id: I2571ec3453c2a5cc95c17b9c65de482e7e0ce9e5
This commit is contained in:
Swaminathan Vasudevan 2016-02-02 14:22:04 -08:00
parent e3832246da
commit 8dcb598080
1 changed files with 1 additions and 2 deletions

View File

@ -521,8 +521,7 @@ class L3_NAT_with_dvr_db_mixin(l3_db.L3_NAT_db_mixin,
"""Returns the portbinding host_id for dvr service port."""
port_db = port or self._core_plugin.get_port(context, port_id)
device_owner = port_db['device_owner'] if port_db else ""
if (n_utils.is_dvr_serviced(device_owner) or
device_owner == l3_const.DEVICE_OWNER_AGENT_GW):
if n_utils.is_dvr_serviced(device_owner):
return port_db[portbindings.HOST_ID]
def _get_agent_gw_ports_exist_for_network(