X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_ro%2Fvimconn_aws.py;h=4520293467909464bdb950a2f52fd24d7fa41ef3;hb=refs%2Fchanges%2F13%2F1813%2F1;hp=22d041241cc21620c3f8a8b23e91c84a4275cd5f;hpb=3643e09e262eef52e3f9c81ec4c1d7efc69944ad;p=osm%2FRO.git diff --git a/osm_ro/vimconn_aws.py b/osm_ro/vimconn_aws.py index 22d04124..45202934 100644 --- a/osm_ro/vimconn_aws.py +++ b/osm_ro/vimconn_aws.py @@ -44,7 +44,7 @@ except: class vimconnector(vimconn.vimconnector): def __init__(self, uuid, name, tenant_id, tenant_name, url, url_admin=None, user=None, passwd=None, log_level=None, - config={}): + config={}, persistent_info={}): """ Params: uuid - id asigned to this VIM name - name assigned to this VIM, can be used for logging tenant_id - ID to be used for tenant @@ -57,10 +57,15 @@ class vimconnector(vimconn.vimconnector): region_name - name of region to deploy the instances vpc_cidr_block - default CIDR block for VPC security_groups - default security group to specify this instance + persistent_info - dict where the class can store information that will be available among class + destroy/creation cycles. This info is unique per VIM/credential. At first call it will contain an + empty dict. Useful to store login/tokens information for speed up communication """ vimconn.vimconnector.__init__(self, uuid, name, tenant_id, tenant_name, url, url_admin, user, passwd, log_level, - config) + config, persistent_info) + + self.persistent_info = persistent_info self.a_creds = {} if user: self.a_creds['aws_access_key_id'] = user