FIT IoT-Lab shell: modified add_user category of user is required
[sfa.git] / sfa / generic / openstack.py
index 590bb57..bd88e90 100644 (file)
@@ -6,30 +6,24 @@ import sfa.managers.registry_manager_openstack
 import sfa.managers.aggregate_manager
 import sfa.managers.slice_manager
 
-class openstack (Generic):
-    
-    # use the standard api class
-    def api_class (self):
-        return sfa.server.sfaapi.SfaApi
+# use pl as a model so we only redefine what's different
+from sfa.generic.pl import pl
+
+
+class openstack (pl):
+
+    # the importer class
+    def importer_class(self):
+        import sfa.importer.openstackimporter
+        return sfa.importer.openstackimporter.OpenstackImporter
 
     # the manager classes for the server-side services
-    def registry_manager_class (self) : 
+    def registry_manager_class(self):
         return sfa.managers.registry_manager_openstack.RegistryManager
-    def slicemgr_manager_class (self) : 
-        return sfa.managers.slice_manager.SliceManager
-    def aggregate_manager_class (self) :
+
+    def aggregate_manager_class(self):
         return sfa.managers.aggregate_manager.AggregateManager
 
     # driver class for server-side services, talk to the whole testbed
-    def driver_class (self):
+    def driver_class(self):
         return sfa.openstack.nova_driver.NovaDriver
-
-    # for the component mode, to be run on board planetlab nodes
-    # manager class
-    def component_manager_class (self):
-        return sfa.managers.component_manager_pl
-    # driver_class
-    def component_driver_class (self):
-        return sfa.plc.plcomponentdriver.PlComponentDriver
-
-