Beispiel #1
0
 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")
Beispiel #2
0
 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")
Beispiel #3
0
 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")
Beispiel #4
0
 def get_lib_cloud():
     cloud_info = CloudInfo()
     cloud_info.type = "LibCloud"
     inf = MagicMock()
     inf.id = "1"
     cloud = LibCloudCloudConnector(cloud_info, inf)
     return cloud
Beispiel #5
0
 def __init__(self, cloud_info):
     self.auth = None
     LibCloudCloudConnector.__init__(self, cloud_info)
Beispiel #6
0
 def __init__(self, cloud_info, inf):
     self.auth = None
     self.add_public_ip_count = 0
     LibCloudCloudConnector.__init__(self, cloud_info, inf)
Beispiel #7
0
 def get_lib_cloud():
     cloud_info = CloudInfo()
     cloud_info.type = "LibCloud"
     cloud = LibCloudCloudConnector(cloud_info)
     return cloud
Beispiel #8
0
 def __init__(self, cloud_info):
     self.auth = None
     LibCloudCloudConnector.__init__(self, cloud_info)
Beispiel #9
0
 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)