3 # Copyright (c) 2018 Orange and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # pylint: disable=missing-docstring
17 'EXTERNAL_NETWORK': None,
19 'DEPLOY_SCENARIO': 'os-nosdn-nofeature-noha',
20 'INSTALLER_TYPE': None,
21 'SDN_CONTROLLER_IP': None,
25 'TEST_DB_URL': 'http://testresults.opnfv.org/test/api/v1/results',
26 'ENERGY_RECORDER_API_URL': 'http://energy.opnfv.fr/resources',
27 'ENERGY_RECORDER_API_USER': '',
28 'ENERGY_RECORDER_API_PASSWORD': ''
33 if env_var not in INPUTS.keys():
34 return os.environ.get(env_var, None)
35 return os.environ.get(env_var, INPUTS[env_var])
38 class Environment(object): # pylint: disable=too-few-public-methods
40 # Backward compatibilty (waiting for SDNVPN and SFC)
42 for key, _ in six.iteritems(INPUTS):
43 setattr(self, key, get(key))
45 # Backward compatibilty (waiting for SDNVPN and SFC)