summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhewei-cmss <hewei@cmss.chinamobile.com>2019-07-10 14:07:01 +0800
committerhewei-cmss <hewei@cmss.chinamobile.com>2019-07-10 14:07:26 +0800
commit2c399c2ac5030dd1150afb2ac46d9212da017477 (patch)
treeddd495ff9a186abc53dbb573660f09c35ad7b375
parent8211cd1235dd4526069265b47419b9fc100682f7 (diff)
Modify get_ns result format
ResourceHandle should be list as the NsInstanceSerializer. Issue-ID: VFC-1442 Signed-off-by: hewei-cmss <hewei@cmss.chinamobile.com> Change-Id: Ic1c10d8edb1f4c419318d01f0c8bd24f3ea6ae3e
-rw-r--r--lcm/ns/biz/ns_get.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/ns/biz/ns_get.py b/lcm/ns/biz/ns_get.py
index 6081c96b..ce91e785 100644
--- a/lcm/ns/biz/ns_get.py
+++ b/lcm/ns/biz/ns_get.py
@@ -123,11 +123,11 @@ class GetNSInfoService(object):
'nsVirtualLinkDescId': vl.vldid,
'nsVirtualLinkProfileId': vl.vldid,
'vlInstanceName': vl.vlinstancename,
- 'resourceHandle': {
+ 'resourceHandle': [{
'vimId': vl.vimid,
'resourceId': vl.relatednetworkid,
'vimLevelResourceType': vl.vltype
- },
+ }],
# todo 'linkPort': self.get_cp_infos(vl.vlinstanceid,is_sol),
'networkId': vl.relatednetworkid,
'subNetworkid': vl.relatedsubnetworkid