コード例 #1
0
    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
コード例 #2
0
 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