

def ex_rename_network(self, network, new_name):
    '\n        Rename a network in MCP 1 data center\n\n        :param  network: The network to rename\n        :type   network: :class:`DimensionDataNetwork`\n\n        :param  new_name: The new name of the network\n        :type   new_name: ``str``\n\n        :rtype: ``bool``\n        '
    response = self.connection.request_with_orgId_api_1(('network/%s' % network.id), method='POST', data=('name=%s' % new_name)).object
    response_code = findtext(response, 'result', GENERAL_NS)
    return (response_code == 'SUCCESS')

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_rename_network/original