Merge "update docstring for get_ports_on_host_by_subnet"
This commit is contained in:
commit
de7e9343bd
|
@ -53,6 +53,8 @@ class DVRServerRpcApi(object):
|
||||||
|
|
||||||
@log_helpers.log_method_call
|
@log_helpers.log_method_call
|
||||||
def get_ports_on_host_by_subnet(self, context, host, subnet):
|
def get_ports_on_host_by_subnet(self, context, host, subnet):
|
||||||
|
"""Get DVR serviced ports on given host and subnet."""
|
||||||
|
|
||||||
cctxt = self.client.prepare()
|
cctxt = self.client.prepare()
|
||||||
return cctxt.call(context, 'get_ports_on_host_by_subnet',
|
return cctxt.call(context, 'get_ports_on_host_by_subnet',
|
||||||
host=host, subnet=subnet)
|
host=host, subnet=subnet)
|
||||||
|
@ -95,6 +97,8 @@ class DVRServerRpcCallback(object):
|
||||||
return self.plugin.get_dvr_mac_address_by_host(context, host)
|
return self.plugin.get_dvr_mac_address_by_host(context, host)
|
||||||
|
|
||||||
def get_ports_on_host_by_subnet(self, context, **kwargs):
|
def get_ports_on_host_by_subnet(self, context, **kwargs):
|
||||||
|
"""Get DVR serviced ports for given host and subnet."""
|
||||||
|
|
||||||
host = kwargs.get('host')
|
host = kwargs.get('host')
|
||||||
subnet = kwargs.get('subnet')
|
subnet = kwargs.get('subnet')
|
||||||
LOG.debug("DVR Agent requests list of VM ports on host %s", host)
|
LOG.debug("DVR Agent requests list of VM ports on host %s", host)
|
||||||
|
|
|
@ -126,7 +126,7 @@ class DVRDbMixin(ext_dvr.DVRMacAddressPluginBase):
|
||||||
|
|
||||||
@log_helpers.log_method_call
|
@log_helpers.log_method_call
|
||||||
def get_ports_on_host_by_subnet(self, context, host, subnet):
|
def get_ports_on_host_by_subnet(self, context, host, subnet):
|
||||||
"""Returns ports of interest, on a given subnet in the input host
|
"""Returns DVR serviced ports on a given subnet in the input host
|
||||||
|
|
||||||
This method returns ports that need to be serviced by DVR.
|
This method returns ports that need to be serviced by DVR.
|
||||||
:param context: rpc request context
|
:param context: rpc request context
|
||||||
|
|
Loading…
Reference in New Issue