From: ying.yunlong Date: Wed, 8 Nov 2017 07:33:21 +0000 (+0800) Subject: Fix vfc-catalog convert vl bug X-Git-Tag: v1.0.1^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F22717%2F1;p=vfc%2Fnfvo%2Fcatalog.git Fix vfc-catalog convert vl bug Change-Id: Ia58fad1a06768cd8d04243b283b1fba4ea98a106 Issue-ID: VFC-558 Signed-off-by: ying.yunlong --- diff --git a/catalog/pub/utils/toscaparser/basemodel.py b/catalog/pub/utils/toscaparser/basemodel.py index ef5e5205..fe4043c3 100644 --- a/catalog/pub/utils/toscaparser/basemodel.py +++ b/catalog/pub/utils/toscaparser/basemodel.py @@ -273,7 +273,7 @@ class BaseInfoModel(object): if 'requirements' in node: for item in node['requirements']: for key, value in item.items(): - if key.upper().find('VIRTUAL_LINK') >= 0: + if key.upper().find('VIRTUAL_LINK') >= 0 or key.upper().find('VIRTUALLINK') >= 0: rets.append({"key_name": key, "vl_id": self.get_requirement_node_name(value)}) return rets