from sfa.rspecs.rspec import RSpec
# the driver interface, mostly provides default behaviours
from sfa.managers.driver import Driver
-from sfa.openstack.openstack_shell import OpenstackShell
+from sfa.openstack.nova_shell import NovaShell
from sfa.openstack.osaggregate import OSAggregate
from sfa.plc.plslices import PlSlices
from sfa.util.osxrn import OSXrn
def __init__ (self, config):
Driver.__init__ (self, config)
- self.shell = OpenstackShell (config)
+ self.shell = NovaShell (config)
self.cache=None
if config.SFA_AGGREGATE_CACHING:
if OpenstackDriver.cache is None:
from urlparse import urlparse
from sfa.util.sfalogging import logger
try:
- from nova import flags
- from nova import context
- from nova import db
- has_nova = True
+ from nova.auth.manager import AuthManager
+ from nova.compute.manager import ComputeManager
+ from nova.network.manager import NetworkManager
+ from nova.scheduler.manager import SchedulerManager
+ has_nova = True
except:
has_nova = False
-class OpenstackShell:
+class NovaShell:
"""
A simple xmlrpc shell to a myplc instance
This class can receive all Openstack calls to the underlying testbed