Exemplo n.º 1
0
 def __init__ (self, api):
     Driver.__init__ (self, api)
     self.config = api.config
     self.testbed_shell = ClabShell (self.config)
     self.cache=None
     
     # Debug print
     print "SFA_INTERFACE_HRN: %s"%(self.config.SFA_INTERFACE_HRN)
     print "SFA_REGISTRY_ROOT_AUTH: %s"%(self.config.SFA_REGISTRY_ROOT_AUTH)
     print "SFA_GENERIC_FLAVOUR: %s"%(self.config.SFA_GENERIC_FLAVOUR)
     print "SFA_CLAB_USER: %s"%(self.config.SFA_CLAB_USER)
     print "SFA_CLAB_PASSWORD: %s"%(self.config.SFA_CLAB_PASSWORD)
     print "SFA_CLAB_GROUP: %s"%(self.config.SFA_CLAB_GROUP)
     print "SFA_CLAB_URL: %s"%(self.config.SFA_CLAB_URL)
     print "SFA_CLAB_AUTO_SLICE_CREATION: %s"%(self.config.SFA_CLAB_AUTO_SLICE_CREATION)
     print "SFA_CLAB_AUTO_NODE_CREATION: %s"%(self.config.SFA_CLAB_AUTO_NODE_CREATION)
     print "SFA_CLAB_DEFAULT_TEMPLATE: %s"%(self.config.SFA_CLAB_DEFAULT_TEMPLATE)
     print "SFA_CLAB_TEMP_DIR_EXP_DATA: %s"%(self.config.SFA_CLAB_TEMP_DIR_EXP_DATA)
            
     # Get it from CONFIG
     self.AUTHORITY = ".".join([self.config.SFA_INTERFACE_HRN,self.config.SFA_GENERIC_FLAVOUR])
     self.TESTBEDNAME = self.config.SFA_GENERIC_FLAVOUR
     self.AUTOMATIC_SLICE_CREATION = self.config.SFA_CLAB_AUTO_SLICE_CREATION
     self.AUTOMATIC_NODE_CREATION = self.config.SFA_CLAB_AUTO_NODE_CREATION
     self.EXP_DATA_DIR = self.config.SFA_CLAB_TEMP_DIR_EXP_DATA
Exemplo n.º 2
0
 def __init__(self, config):
     Driver.__init__(self, config)
     self.config = config
     self.hrn = config.SFA_INTERFACE_HRN
     self.root_auth = config.SFA_REGISTRY_ROOT_AUTH
     self.shell = DummyShell(config)
     self.testbedInfo = self.shell.GetTestbedInfo()
Exemplo n.º 3
0
 def __init__ (self, api):
     Driver.__init__ (self, api)
     self.config = api.config
     self.testbed_shell = ClabShell (self.config)
     self.cache=None
     self
     
     # Debug print
     print "SFA_INTERFACE_HRN: %s"%(self.config.SFA_INTERFACE_HRN)
     print "SFA_REGISTRY_ROOT_AUTH: %s"%(self.config.SFA_REGISTRY_ROOT_AUTH)
     print "SFA_GENERIC_FLAVOUR: %s"%(self.config.SFA_GENERIC_FLAVOUR)
     print "SFA_CLAB_USER: %s"%(self.config.SFA_CLAB_USER)
     print "SFA_CLAB_PASSWORD: %s"%(self.config.SFA_CLAB_PASSWORD)
     print "SFA_CLAB_GROUP: %s"%(self.config.SFA_CLAB_GROUP)
     print "SFA_CLAB_URL: %s"%(self.config.SFA_CLAB_URL)
     print "SFA_CLAB_AUTO_SLICE_CREATION: %s"%(self.config.SFA_CLAB_AUTO_SLICE_CREATION)
     print "SFA_CLAB_AUTO_NODE_CREATION: %s"%(self.config.SFA_CLAB_AUTO_NODE_CREATION)
     print "SFA_CLAB_DEFAULT_TEMPLATE: %s"%(self.config.SFA_CLAB_DEFAULT_TEMPLATE)
     print "SFA_CLAB_TEMP_DIR_EXP_DATA: %s"%(self.config.SFA_CLAB_TEMP_DIR_EXP_DATA)
     print "SFA_CLAB_AGGREGATE_CACHING: %s"%(self.config.SFA_CLAB_AGGREGATE_CACHING)
     print "SFA_CLAB_AGGREGATE_CACHE_EXPIRATION_TIME: %s"%(self.config.SFA_CLAB_AGGREGATE_CACHE_EXPIRATION_TIME)
            
     # Get it from CONFIG
     #self.AUTHORITY = ".".join([self.config.SFA_INTERFACE_HRN,self.config.SFA_GENERIC_FLAVOUR])
     self.AUTHORITY = self.config.SFA_INTERFACE_HRN
     self.TESTBEDNAME = self.config.SFA_GENERIC_FLAVOUR
     self.AUTOMATIC_SLICE_CREATION = self.config.SFA_CLAB_AUTO_SLICE_CREATION
     self.AUTOMATIC_NODE_CREATION = self.config.SFA_CLAB_AUTO_NODE_CREATION
     self.EXP_DATA_DIR = self.config.SFA_CLAB_TEMP_DIR_EXP_DATA
             
     # Create the Cache instance if CACHING is enabled
     if self.config.SFA_AGGREGATE_CACHING:
         if ClabDriver.cache is None:
             ClabDriver.cache = Cache(exp_time=self.config.SFA_CLAB_AGGREGATE_CACHE_EXPIRATION_TIME)
         self.cache = ClabDriver.cache
Exemplo n.º 4
0
 def __init__ (self, config):
     Driver.__init__ (self, config)
     self.shell = PlShell (config)
     self.cache=None
     if config.SFA_AGGREGATE_CACHING:
         if PlDriver.cache is None:
             PlDriver.cache = Cache()
         self.cache = PlDriver.cache
Exemplo n.º 5
0
 def __init__(self, api):
     Driver.__init__(self, api)
     config = api.config
     self.api = api
     self.root_auth = config.SFA_REGISTRY_ROOT_AUTH
     self.shell = IotLABShell()
     # need by sfa driver
     self.cache = None
Exemplo n.º 6
0
 def __init__ (self, api):
     Driver.__init__ (self, api)
     config = api.config
     self.hrn = config.SFA_INTERFACE_HRN
     self.root_auth = config.SFA_REGISTRY_ROOT_AUTH
     #self.shell = DummyShell (config)
     self.shell = unigetestbedShell (nodes_list, slices, indexes)
     self.testbedInfo = self.shell.GetTestbedInfo()
Exemplo n.º 7
0
 def __init__(self, api):
     Driver.__init__(self, api)
     config = api.config
     self.hrn = config.SFA_INTERFACE_HRN
     self.root_auth = config.SFA_REGISTRY_ROOT_AUTH
     #self.shell = DummyShell (config)
     self.shell = unigetestbedShell(nodes_list, slices, indexes)
     self.testbedInfo = self.shell.GetTestbedInfo()
Exemplo n.º 8
0
 def __init__ (self, api):
     Driver.__init__(self, api)
     config = api.config
     self.shell = Shell(config=config)
     self.cache=None
     if config.SFA_AGGREGATE_CACHING:
         if OpenstackDriver.cache is None:
             OpenstackDriver.cache = Cache()
         self.cache = OpenstackDriver.cache
Exemplo n.º 9
0
 def __init__(self, api):
     Driver.__init__(self, api)
     config = api.config
     self.shell = Shell(config=config)
     self.cache = None
     if config.SFA_AGGREGATE_CACHING:
         if NovaDriver.cache is None:
             NovaDriver.cache = Cache()
         self.cache = NovaDriver.cache
Exemplo n.º 10
0
    def __init__(self, api):
        Driver.__init__(self, api)
        config = api.config
        self.hrn = config.SFA_INTERFACE_HRN
        self.root_auth = config.SFA_REGISTRY_ROOT_AUTH
        self.shell = DummyShell(config)
        self.testbedInfo = self.shell.GetTestbedInfo()

        # Debug prints
        print "SFA_INTERFACE_HRN: %s" % (config.SFA_INTERFACE_HRN)
        print "SFA_REGISTRY_ROOT_AUTH: %s" % (config.SFA_REGISTRY_ROOT_AUTH)
        print "SFA_DUMMY_URL: %s" % (config.SFA_DUMMY_URL)
Exemplo n.º 11
0
 def __init__ (self, api):
     Driver.__init__ (self, api)
     config = api.config
     self.hrn = config.SFA_INTERFACE_HRN
     self.root_auth = config.SFA_REGISTRY_ROOT_AUTH
     self.shell = DummyShell (config)
     self.testbedInfo = self.shell.GetTestbedInfo()
     
     # Debug prints
     print "SFA_INTERFACE_HRN: %s"%(config.SFA_INTERFACE_HRN)
     print "SFA_REGISTRY_ROOT_AUTH: %s"%(config.SFA_REGISTRY_ROOT_AUTH)
     print "SFA_DUMMY_URL: %s"%(config.SFA_DUMMY_URL)
Exemplo n.º 12
0
 def __init__ (self, config):
     Driver.__init__ (self, config)
     self.shell = NitosShell (config)
     self.cache=None
     self.testbedInfo = self.shell.getTestbedInfo()
Exemplo n.º 13
0
 def __init__(self, api):
     Driver.__init__(self, api)
     config = api.config
     self.shell = NitosShell(config)
     self.cache = None
     self.testbedInfo = self.shell.getTestbedInfo()