Ejemplo n.º 1
0
 def __init__(self, name, config, comp=None, net=None, server=False):
     Instance.__init__(self, name, config, comp, net)
     self.is_server = server
     if "I" in config.protocols:
         self.ping = PingTool(self)
     else:
         self.ping = None
     if config.tp_tool:
         self.tp_tool = config.tp_tool(self)
     else:
         self.tp_tool = None
Ejemplo n.º 2
0
 def __init__(self, name, config, comp=None, net=None, server=False):
     Instance.__init__(self, name, config, comp, net)
     self.is_server = server
     if 'I' in config.protocols:
         self.ping = PingTool(self)
     else:
         self.ping = None
     if config.tp_tool:
         self.tp_tool = config.tp_tool(self)
     else:
         self.tp_tool = None
Ejemplo n.º 3
0
 def __init__(self, name, config, comp=None, net=None, server=False):
     Instance.__init__(self, name, config, comp, net)
     self.is_server = server
     if 'I' in config.protocols:
         self.ping = PingTool(self)
     else:
         self.ping = None
     if config.tp_tool:
         self.tp_tool = config.tp_tool(self, config.perf_tool_path)
     else:
         self.tp_tool = None
     # Override the config drive option to save in instance
     if config.config_drive:
         self.config_drive = True
     else:
         self.config_drive = None
Ejemplo n.º 4
0
 def __init__(self, conf_file):
     Instance.__init__(self, conf_file)
     self.tenant_id = self.nova.client.tenant_id
     self.instance_quota = self.nova.quotas.get(self.tenant_id).instances
     self.floatingip_quota = self.nova.quotas.get(
         self.tenant_id).floating_ips
Ejemplo n.º 5
0
    def __init__(self, meta_data):

        Instance.__init__(self, meta_data)
        self.instance_name = meta_data['']
Ejemplo n.º 6
0
 def __init__(self, conf_file):
     Instance.__init__(self, conf_file)
Ejemplo n.º 7
0
 def __init__(self, instance_name):
     Instance.__init__(self, instance_name)
     self.instance_name = instance_name