CSV Parser added, interactive table with bind utilization
This commit is contained in:
@@ -54,3 +54,31 @@ def req_apply_sys():
|
||||
|
||||
#
|
||||
# http://10.30.1.138:5000/api/client/caivc1vekn84im2m6ec0?_=1669623393468
|
||||
|
||||
def req_ip_recommendation():
|
||||
# Write your own ip recommendation next time
|
||||
# http://10.30.1.138:5000/api/suggest-client-ips
|
||||
|
||||
inf_s = get_session()
|
||||
req_url = 'http://10.30.1.138:5000/api/suggest-client-ips'
|
||||
|
||||
req = inf_s.get(req_url)
|
||||
req = req.json()
|
||||
|
||||
req_dump = {}
|
||||
req_dump["allocated_ips"] = {}
|
||||
req_dump["allowed_ips"] = {"OAM":"10.30.1.0/24", "NEW_OAM":"192.168.200.0/24", "WG Nodes":"192.168.100.0/24"}
|
||||
|
||||
i = 0
|
||||
|
||||
tmp_array = []
|
||||
for x in req:
|
||||
print(x)
|
||||
tmp_array.append(x)
|
||||
i = i+1
|
||||
|
||||
req_dump["allocated_ips"] = tmp_array
|
||||
print(req)
|
||||
print(req_dump)
|
||||
|
||||
return json.dumps(req_dump)
|
||||
|
||||
Reference in New Issue
Block a user