def ListGatewayInfo(self, request, context): logging.debug("Received ListGatewayInfo") self._print_grpc(request) resp = ListGWInfoResponse() gw_info_list = self._ip_address_man.list_gateway_info() if gw_info_list: resp.gw_list.extend(gw_info_list) self._print_grpc(resp) return resp
def ListGatewayInfo(self, void, context): resp = ListGWInfoResponse() gw_info_list = self._ipv4_allocator.list_gateway_info() if gw_info_list: resp.gw_list.extend(gw_info_list) return resp