aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2019-07-19 14:23:26 +0000
committerHaibin Huang <haibin.huang@intel.com>2019-07-19 14:29:08 +0000
commit787ecec043358a01583a30690e801bd80a1df11d (patch)
tree0a38259d26b158f3a364549e0b9d2288acf349ba
parent947cea0fc3d11a97def32760b4df8cfc1abb7e4a (diff)
Change layer_protocol array to string
Issue-ID: VFC-1460 Change-Id: Idc98da9a18deaf43281551ed0b0e399ef8209ef3 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
-rw-r--r--catalog/pub/utils/toscaparser/vnfdparser/vnfd_sol_251.py2
1 files changed, 1 insertions, 1 deletions
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']: