summaryrefslogtreecommitdiffstats
path: root/zte/vmanager/driver/pub/utils/restcall.py
diff options
context:
space:
mode:
Diffstat (limited to 'zte/vmanager/driver/pub/utils/restcall.py')
-rw-r--r--zte/vmanager/driver/pub/utils/restcall.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/zte/vmanager/driver/pub/utils/restcall.py b/zte/vmanager/driver/pub/utils/restcall.py
index 8efe0afb..3bf9c2d8 100644
--- a/zte/vmanager/driver/pub/utils/restcall.py
+++ b/zte/vmanager/driver/pub/utils/restcall.py
@@ -94,6 +94,7 @@ def combine_url(base_url, resource):
full_url = base_url + '/' + resource
return full_url
+
def call_req_aai(base_url, user, passwd, auth_type, resource, method, content=''):
callid = str(uuid.uuid1())
logger.debug("[%s]call_req('%s','%s','%s',%s,'%s','%s','%s')" % (
@@ -142,5 +143,6 @@ def call_req_aai(base_url, user, passwd, auth_type, resource, method, content=''
logger.debug("[%s]ret=%s" % (callid, str(ret)))
return ret
+
def call_aai(resource, method, data=''):
return call_req_aai(AAI_BASE_URL, AAI_USER, AAI_PASSWORD, rest_no_auth, resource, method, data)