fix bug in get_aggregate_nodes()
[sfa.git] / sfa / generic / openstack.py
1 from sfa.generic import Generic
2
3 import sfa.server.sfaapi
4 import sfa.openstack.nova_driver
5 import sfa.managers.registry_manager_openstack
6 import sfa.managers.aggregate_manager
7 import sfa.managers.slice_manager
8
9 class openstack (Generic):
10     
11     # use the standard api class
12     def api_class (self):
13         return sfa.server.sfaapi.SfaApi
14
15     # the manager classes for the server-side services
16     def registry_manager_class (self) : 
17         return sfa.managers.registry_manager_openstack.RegistryManager
18     def slicemgr_manager_class (self) : 
19         return sfa.managers.slice_manager.SliceManager
20     def aggregate_manager_class (self) :
21         return sfa.managers.aggregate_manager.AggregateManager
22
23     # driver class for server-side services, talk to the whole testbed
24     def driver_class (self):
25         return sfa.openstack.nova_driver.NovaDriver
26
27     # for the component mode, to be run on board planetlab nodes
28     # manager class
29     def component_manager_class (self):
30         return sfa.managers.component_manager_pl
31     # driver_class
32     def component_driver_class (self):
33         return sfa.plc.plcomponentdriver.PlComponentDriver
34
35