status = models.CharField(db_column='status', max_length=20)
     creator = models.CharField(db_column='creator', max_length=50)
     create_time = models.BigIntegerField(db_column='createTime', max_length=20)
-    
+
+
 class WFPlanModel(models.Model):
     class Meta:
         db_table = 'NFVO_WF_PLAN'
     status = models.CharField(db_column='STATUS', max_length=255)
     message = models.CharField(db_column='MESSAGE', max_length=1024)
     plan_name = models.CharField(db_column='PLANNAME', max_length=255)
-    
 
     }
 
     return restcall.call_req(AAI_BASE_URL,
-                     AAI_USER,
-                     AAI_PASSWD,
-                     restcall.rest_no_auth,
-                     resource,
-                     method,
-                     content,
-                     additional_headers)
+                             AAI_USER,
+                             AAI_PASSWD,
+                             restcall.rest_no_auth,
+                             resource,
+                             method,
+                             content,
+                             additional_headers)
 
 
 def create_customer_aai(global_customer_id, data):
 
     ret = req_by_msb("/api/resmgr/v1/vl", "POST", json.JSONEncoder().encode(req_param))
     if ret[0] != 0:
         logger.error("Failed to create vl to resmgr. detail is %s.", ret[1])
-        #raise NSLCMException('Failed to create vl to resmgr.')
-    #return json.JSONDecoder().decode(ret[1])
+        # raise NSLCMException('Failed to create vl to resmgr.')
+    # return json.JSONDecoder().decode(ret[1])
 
 
 def delete_vl(vl_inst_id):
     ret = req_by_msb("/api/resmgr/v1/vl/%s" % vl_inst_id, "DELETE")
     if ret[0] != 0:
         logger.error("Failed to delete vl(%s) to resmgr. detail is %s.", vl_inst_id, ret[1])
-        #raise NSLCMException("Failed to delete vl(%s) to resmgr." % vl_inst_id)
+        # raise NSLCMException("Failed to delete vl(%s) to resmgr." % vl_inst_id)
 
 
 def delete_sfc(sfc_inst_id):
     ret = req_by_msb("/api/resmgr/v1/sfc/%s" % sfc_inst_id, "DELETE")
     if ret[0] != 0:
         logger.error("Failed to delete sfc(%s) to resmgr. detail is %s.", sfc_inst_id, ret[1])
-        #raise NSLCMException("Failed to delete sfc(%s) to resmgr." % sfc_inst_id)
+        # raise NSLCMException("Failed to delete sfc(%s) to resmgr." % sfc_inst_id)
 
 
 def grant_vnf(req_param):
     ret = req_by_msb("/api/resmgr/v1/resource/grant", "PUT", grant_data)
     if ret[0] != 0:
         logger.error("Failed to grant vnf to resmgr. detail is %s.", ret[1])
-        #raise NSLCMException('Failed to grant vnf to resmgr.')
+        # raise NSLCMException('Failed to grant vnf to resmgr.')
         vim_id = ""
         if "vimId" in req_param:
             vim_id = req_param["vimId"]
     ret = req_by_msb(uri, "POST", req_param)
     if ret[0] != 0:
         logger.error('Send create VNF request to resmgr failed.')
-        #raise NSLCMException('Send create VNF request to resmgr failed.')
+        # raise NSLCMException('Send create VNF request to resmgr failed.')
 
 
 def create_vnf_creation_info(data):
     ret = req_by_msb(uri, "POST", req_param)
     if ret[0] > 0:
         logger.error('Send write vnf creation information to resmgr failed.')
-        #raise NSLCMException('Send write vnf creation information to resmgr failed.')
+        # raise NSLCMException('Send write vnf creation information to resmgr failed.')
 
 
 def terminate_vnf(vnf_inst_id):
     ret = req_by_msb(uri, "DELETE", json.dumps(req_param))
     if ret[0] > 0:
         logger.error('Send terminate VNF request to resmgr failed.')
-        #raise NSLCMException('Send terminate VNF request to resmgr failed.')
\ No newline at end of file
+        # raise NSLCMException('Send terminate VNF request to resmgr failed.')
 
 
 logger = logging.getLogger(__name__)
 
-ASSETTYPE_RESOURCES = "resources" 
+ASSETTYPE_RESOURCES = "resources"
 ASSETTYPE_SERVICES = "services"
 
+
 def call_sdc(resource, method, content=''):
     additional_headers = {
         'X-ECOMP-InstanceID': 'VFC',
     }
-    return restcall.call_req(base_url=SDC_BASE_URL, 
-        user=SDC_USER, 
-        passwd=SDC_PASSWD, 
-        auth_type=restcall.rest_no_auth, 
-        resource=resource, 
-        method=method, 
-        content=content,
-        additional_headers=additional_headers)
+    return restcall.call_req(base_url=SDC_BASE_URL,
+                             user=SDC_USER,
+                             passwd=SDC_PASSWD,
+                             auth_type=restcall.rest_no_auth,
+                             resource=resource,
+                             method=method,
+                             content=content,
+                             additional_headers=additional_headers)
+
 
 """
 sample of return value
     }
 ]
 """
+
+
 def get_artifacts(asset_type):
     resource = "/sdc/v1/catalog/{assetType}"
     resource = resource.format(assetType=asset_type)
         raise NSLCMException("Failed to query artifacts(%s) from sdc." % asset_type)
     return json.JSONDecoder().decode(ret[1])
 
+
 def get_artifact(asset_type, csar_id):
     artifacts = get_artifacts(asset_type)
     for artifact in artifacts:
             return artifact
     raise NSLCMException("Failed to query artifact(%s,%s) from sdc." % (asset_type, csar_id))
 
+
 def delete_artifact(asset_type, asset_id, artifact_id):
     resource = "/sdc/v1/catalog/{assetType}/{uuid}/artifacts/{artifactUUID}"
     resource = resource.format(assetType=asset_type, uuid=asset_id, artifactUUID=artifact_id)
         raise NSLCMException("Failed to delete artifacts(%s) from sdc." % artifact_id)
     return json.JSONDecoder().decode(ret[1])
 
+
 def download_artifacts(download_url, local_path, file_name):
     additional_headers = {
         'X-ECOMP-InstanceID': 'VFC',
         'accept': 'application/octet-stream'
     }
-    ret = restcall.call_req(base_url=SDC_BASE_URL, 
-        user=SDC_USER, 
-        passwd=SDC_PASSWD, 
-        auth_type=rest_no_auth, 
-        resource=download_url, 
-        method="GET",
-        additional_headers=additional_headers)
+    ret = restcall.call_req(base_url=SDC_BASE_URL,
+                            user=SDC_USER,
+                            passwd=SDC_PASSWD,
+                            auth_type=restcall.rest_no_auth,
+                            resource=download_url,
+                            method="GET",
+                            additional_headers=additional_headers)
     if ret[0] != 0:
         logger.error("Status code is %s, detail is %s.", ret[2], ret[1])
         raise NSLCMException("Failed to download %s from sdc." % download_url)
     local_file.write(ret[1])
     local_file.close()
     return local_file_name
-
-    
-
-    
-
-
-   
-
-
-
-