From 787ecec043358a01583a30690e801bd80a1df11d Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Fri, 19 Jul 2019 14:23:26 +0000 Subject: Change layer_protocol array to string Issue-ID: VFC-1460 Change-Id: Idc98da9a18deaf43281551ed0b0e399ef8209ef3 Signed-off-by: Haibin Huang --- catalog/pub/utils/toscaparser/vnfdparser/vnfd_sol_251.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalog/pub/utils/toscaparser/vnfdparser/vnfd_sol_251.py b/catalog/pub/utils/toscaparser/vnfdparser/vnfd_sol_251.py index f1cb1560..d1b0d143 100644 --- a/catalog/pub/utils/toscaparser/vnfdparser/vnfd_sol_251.py +++ b/catalog/pub/utils/toscaparser/vnfdparser/vnfd_sol_251.py @@ -91,7 +91,7 @@ class VnfdSOL251(): vl['properties'] = node['properties'] vlp = vl['properties'] nodep = node['properties'] - vlp['connectivity_type']['layer_protocol'] = nodep['connectivity_type']['layer_protocols'] + vlp['connectivity_type']['layer_protocol'] = nodep['connectivity_type']['layer_protocols'][0] vlp['vl_profile']['max_bit_rate_requirements'] = nodep['vl_profile']['max_bitrate_requirements'] vlp['vl_profile']['min_bit_rate_requirements'] = nodep['vl_profile']['min_bitrate_requirements'] if 'virtual_link_protocol_data' in nodep['vl_profile']: -- cgit 1.2.3-korg