

def _to_network(self, element):
    '\n        Take XML object containing a network description and convert to\n        OpenNebulaNetwork object.\n\n        Take XML representation containing a network description and\n        convert to OpenNebulaNetwork object.\n\n        :return: The newly extracted :class:`OpenNebulaNetwork`.\n        :rtype:  :class:`OpenNebulaNetwork`\n        '
    return OpenNebulaNetwork(id=element.findtext('ID'), name=element.findtext('NAME'), address=element.findtext('ADDRESS'), size=element.findtext('SIZE'), driver=self.connection.driver, extra={
        'public': element.findtext('PUBLIC'),
    })

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/opennebula.py OpenNebula_3_0_NodeDriver._to_network/original