From e8b6d6debe2b056b404fc353f54b67364b58c59d Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Mon, 10 Oct 2016 17:11:20 -0400 Subject: Migrate to stable/newton os-odl_l2_nofeature is now deprecated since new netvirt only supports odl_l3. JIRA: APEX-299 Change-Id: I3557ecb85fa4cd11bba96aa9410e56a8e8cceb00 Signed-off-by: Tim Rozet --- lib/python/apex/network_environment.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/python/apex/network_environment.py') diff --git a/lib/python/apex/network_environment.py b/lib/python/apex/network_environment.py index 5cb2d0cd..ae5c602c 100644 --- a/lib/python/apex/network_environment.py +++ b/lib/python/apex/network_environment.py @@ -22,6 +22,7 @@ from .common.constants import ( PRE_CONFIG_DIR ) +HEAT_NONE = 'OS::Heat::None' PORTS = '/ports' # Resources defined by : EXTERNAL_RESOURCES = {'OS::TripleO::Network::External': None, @@ -196,7 +197,7 @@ class NetworkEnvironment(dict): if prefix is None: prefix = '' m = re.split('%s/\w+\.yaml' % prefix, self[reg][key]) - if m is not None: + if m is not None and len(m) > 1: self.tht_dir = m[0] break if not self.tht_dir: @@ -205,6 +206,9 @@ class NetworkEnvironment(dict): def _config_resource_reg(self, resources, postfix): for key, prefix in resources.items(): if prefix is None: + if postfix == '/noop.yaml': + self[reg][key] = HEAT_NONE + continue prefix = '' self[reg][key] = self.tht_dir + prefix + postfix -- cgit 1.2.3-korg