from sfa.generic import Generic

import sfa.server.sfaapi
import sfa.openstack.openstack_driver
import sfa.managers.registry_manager_openstack
import sfa.managers.slice_manager
import sfa.managers.aggregate_manager_openstack

class openstack (Generic):
    
    # use the standard api class
    def api_class (self):
        return sfa.server.sfaapi.SfaApi

    # the manager classes for the server-side services
    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) :
        return sfa.managers.aggregate_manager_openstack.AggregateManager

    # driver class for server-side services, talk to the whole testbed
    def driver_class (self):
        return sfa.openstack.openstack_driver.OpenstackDriver

    # 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



@@ -68,33 +68,28 @@
 a.openstack.
-openstack
+nova
 _driver%0Aimpo
@@ -143,36 +143,40 @@
 rt sfa.managers.
-slic
+aggregat
 e_manager%0Aimport
@@ -185,32 +185,28 @@
 fa.managers.
-aggregat
+slic
 e_manager_op
@@ -202,26 +202,16 @@
 _manager
-_openstack
 %0A%0Aclass 
@@ -685,26 +685,16 @@
 _manager
-_openstack
 .Aggrega
@@ -837,34 +837,24 @@
 ack.
-openstack_driver.Openstack
+nova_driver.Nova
 Driv

use default aggregate manager. OpenstackDriver renamed to NovaDriver