|
|
@@ -112,10 +112,13 @@ def remote(request):
|
|
112
|
112
|
|
|
113
|
113
|
def service_status(request):
|
|
114
|
114
|
cmd = request.GET.get('cmd', None)
|
|
|
115
|
+ import urllib.parse
|
|
115
|
116
|
section = request.GET.get('section', 'all')
|
|
116
|
117
|
# exfo = Exfo("administrator", "exf0w0rxC@t4dm!n")
|
|
117
|
118
|
# exfo.login()
|
|
118
|
|
- r = exfo.call_remote_api(cmd+"?sections=all&size=0")
|
|
|
119
|
+ cmd = urllib.parse.unquote(cmd)
|
|
|
120
|
+ pprint(f" cmd = {cmd}")
|
|
|
121
|
+ r = exfo.call_remote_api(cmd)
|
|
119
|
122
|
pprint(r.json())
|
|
120
|
123
|
# return JsonResponse(r.json())
|
|
121
|
124
|
return render(request, 'backend/service_status.html', {'res': r, 'section': section})
|