Fix vfc-catalog convert vl bug 17/22717/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Wed, 8 Nov 2017 07:33:21 +0000 (15:33 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Wed, 8 Nov 2017 07:33:21 +0000 (15:33 +0800)
Change-Id: Ia58fad1a06768cd8d04243b283b1fba4ea98a106
Issue-ID: VFC-558
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
catalog/pub/utils/toscaparser/basemodel.py

index ef5e520..fe4043c 100644 (file)
@@ -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