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:
parent
e3832246da
commit
8dcb598080
@ -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."""
|
"""Returns the portbinding host_id for dvr service port."""
|
||||||
port_db = port or self._core_plugin.get_port(context, port_id)
|
port_db = port or self._core_plugin.get_port(context, port_id)
|
||||||
device_owner = port_db['device_owner'] if port_db else ""
|
device_owner = port_db['device_owner'] if port_db else ""
|
||||||
if (n_utils.is_dvr_serviced(device_owner) or
|
if n_utils.is_dvr_serviced(device_owner):
|
||||||
device_owner == l3_const.DEVICE_OWNER_AGENT_GW):
|
|
||||||
return port_db[portbindings.HOST_ID]
|
return port_db[portbindings.HOST_ID]
|
||||||
|
|
||||||
def _get_agent_gw_ports_exist_for_network(
|
def _get_agent_gw_ports_exist_for_network(
|
||||||
|
Loading…
Reference in New Issue
Block a user