summaryrefslogtreecommitdiffstats
path: root/vnftest/contexts/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'vnftest/contexts/base.py')
-rw-r--r--vnftest/contexts/base.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/vnftest/contexts/base.py b/vnftest/contexts/base.py
index c6f3992..538a2d6 100644
--- a/vnftest/contexts/base.py
+++ b/vnftest/contexts/base.py
@@ -20,29 +20,11 @@ import yaml
import logging
LOG = logging.getLogger(__name__)
+
@six.add_metaclass(abc.ABCMeta)
class Context(object):
"""Class that represents a context in the logical model"""
list = []
- vnf_descriptor = {}
- onap_env_config = {}
- creds = {}
-
- @classmethod
- def initialize(cls, vnf_descriptor_path, environment_path):
- LOG.info('vnf descriptor path: %s', str(vnf_descriptor_path))
- LOG.info('environment path: %s', str(environment_path))
- with open(vnf_descriptor_path) as f:
- cls.vnf_descriptor = yaml.safe_load(f)
- with open(environment_path) as f:
- environment_config = yaml.safe_load(f)
- openstack_env_config = environment_config['openstack']
- openstack_utils.initialize(openstack_env_config)
- cls.onap_env_config = environment_config['onap']
-
- cls.creds = openstack_utils.get_credentials()
-
-
@staticmethod
def split_name(name, sep='.'):