Standardized vfc-vnflcm log output 37/42237/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Wed, 11 Apr 2018 10:26:44 +0000 (18:26 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Wed, 11 Apr 2018 10:26:44 +0000 (18:26 +0800)
Change-Id: I79fd49e964d0ef77e84f69e14673691e67da2283
Issue-ID: VFC-873
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/lcm/jobs/job_get.py
lcm/lcm/nf/vnf_query/query_vnf.py
lcm/lcm/v2/vnf_query/query_vnf.py

index 0953df9..4614b95 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import logging
-
 from lcm.pub.utils.jobutil import JobUtil
 
-logger = logging.getLogger(__name__)
-
 
 class GetJobInfoService(object):
     def __init__(self, job_id, response_id=0):
index 70727b1..1a6bdd9 100644 (file)
@@ -43,7 +43,7 @@ class QueryVnf:
         return resp_data
 
     def fill_resp_data(self, vnf):
-        logger.info('Get the list of vloumes')
+        logger.info('Get storages')
         storage_inst = StorageInstModel.objects.filter(instid=vnf.nfinstid)
         arr = []
         for s in storage_inst:
@@ -55,7 +55,7 @@ class QueryVnf:
                 }
             }
             arr.append(storage)
-        logger.info('Get the VLInstModel of list.')
+        logger.info('Get networks')
         vl_inst = VLInstModel.objects.filter(ownerid=vnf.nfinstid)
         vl_arr = []
         for v in vl_inst:
@@ -71,7 +71,7 @@ class QueryVnf:
                 }
             }
             vl_arr.append(v_dic)
-        logger.info('Get VNFCInstModel of list.')
+        logger.info('Get vnfcs')
         vnfc_insts = VNFCInstModel.objects.filter(instid=vnf.nfinstid)
         vnfc_arr = []
         for vnfc in vnfc_insts:
@@ -91,7 +91,7 @@ class QueryVnf:
                 "storageResourceIds": [s.storageid for s in storage]
             }
             vnfc_arr.append(vnfc_dic)
-        logger.info('Get the VimInstModel of list.')
+        logger.info('Get vms')
         vms = VmInstModel.objects.filter(instid=vnf.nfinstid)
         vm_arr = []
         for vm in vms:
index a8fc4d1..016b1a9 100644 (file)
@@ -43,7 +43,7 @@ class QueryVnf:
         return resp_data
 
     def fill_resp_data(self, vnf):
-        logger.info('Get the list of vloumes')
+        logger.info('Get storages')
         storage_inst = StorageInstModel.objects.filter(instid=vnf.nfinstid)
         arr = []
         for s in storage_inst:
@@ -55,7 +55,7 @@ class QueryVnf:
                 }
             }
             arr.append(storage)
-        logger.info('Get the VLInstModel of list.')
+        logger.info('Get networks')
         vl_inst = VLInstModel.objects.filter(ownerid=vnf.nfinstid)
         vl_arr = []
         for v in vl_inst:
@@ -71,7 +71,7 @@ class QueryVnf:
                 }
             }
             vl_arr.append(v_dic)
-        logger.info('Get VNFCInstModel of list.')
+        logger.info('Get vnfcs')
         vnfc_insts = VNFCInstModel.objects.filter(instid=vnf.nfinstid)
         vnfc_arr = []
         for vnfc in vnfc_insts:
@@ -91,7 +91,7 @@ class QueryVnf:
                 "storageResourceIds": [s.storageid for s in storage]
             }
             vnfc_arr.append(vnfc_dic)
-        logger.info('Get the VimInstModel of list.')
+        logger.info('Get vms')
         vms = VmInstModel.objects.filter(instid=vnf.nfinstid)
         vm_arr = []
         for vm in vms: