#NEWLINE# def _get_dvr_service_port_hostid( self , context , port_id , port = None ) : #NEWLINE# #INDENT# 'Returns the portbinding host_id for dvr service port.' #NEWLINE# port_db = ( port or self . _core_plugin . get_port ( context , self ) ) #NEWLINE# device_owner = ( port_db [ 'device_owner' ] if port_db else '' ) #NEWLINE# if n_utils . is_dvr_serviced ( device_owner ) : #NEWLINE# #INDENT# return port_db [ portbindings . HOST_ID ]