def __init__ ( self, config ) :
url = config.SFA_PLC_URL
# try to figure if the url is local
+ is_local=False
hostname=urlparse(url).hostname
if hostname == 'localhost': is_local=True
# otherwise compare IP addresses;
# this is an isntance type dict
name = instance['name']
type = instance['name']
- elif isinstnace(instance, nova.db.sqlalchemy.models.Instance):
+ elif isinstance(instance, nova.db.sqlalchemy.models.Instance):
# this is an object that describes a running instance
name = instance.display_name
type = instance.instance_type.name
self.driver.shell.db.key_pair_destroy(username, key.name)
def verify_instances(self, slicename, rspec):
- pass
+ rsepc = RSpec(rspec)
+ nodes = rspec.version.get_nodes_with_slivers()
+ old_instances = self.driver.shell.db.instance_get_all_by_project(name)
+ for node in nodes:
+ for slivers in node.get('slivers', []):
+ pass
+ # get instance type
+ # get image
+ # start instance