def update_system_info_from_instance(self, system, instance_type): """ Update the features of the system with the information of the instance_type """ if instance_type: LibCloudCloudConnector.update_system_info_from_instance(self, system, instance_type) if instance_type.vcpus: system.addFeature( Feature("cpu.count", "=", instance_type.vcpus), conflict="me", missing="other")
def update_system_info_from_instance(self, system, instance_type): """ Update the features of the system with the information of the instance_type """ if instance_type: LibCloudCloudConnector.update_system_info_from_instance( self, system, instance_type) if instance_type.vcpus: system.addFeature( Feature("cpu.count", "=", instance_type.vcpus), conflict="me", missing="other")
def update_system_info_from_instance(system, instance_type): """ Update the features of the system with the information of the instance_type """ if isinstance(instance_type, NodeSize): LibCloudCloudConnector.update_system_info_from_instance( system, instance_type) if 'guestCpus' in instance_type.extra: system.addFeature(Feature("cpu.count", "=", instance_type.extra['guestCpus']), conflict="other", missing="other")
def get_lib_cloud(): cloud_info = CloudInfo() cloud_info.type = "LibCloud" inf = MagicMock() inf.id = "1" cloud = LibCloudCloudConnector(cloud_info, inf) return cloud
def __init__(self, cloud_info): self.auth = None LibCloudCloudConnector.__init__(self, cloud_info)
def __init__(self, cloud_info, inf): self.auth = None self.add_public_ip_count = 0 LibCloudCloudConnector.__init__(self, cloud_info, inf)
def get_lib_cloud(): cloud_info = CloudInfo() cloud_info.type = "LibCloud" cloud = LibCloudCloudConnector(cloud_info) return cloud
def __init__(self, cloud_info): self.auth = None LibCloudCloudConnector.__init__(self, cloud_info)
def __init__(self, cloud_info, inf): self.auth = None self.datacenter = None self.driver = None self.dns_driver = None LibCloudCloudConnector.__init__(self, cloud_info, inf)