mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
show_ports.py: showing errors
This commit is contained in:
@@ -18,11 +18,12 @@ def main():
|
|||||||
timeout = 5 # seconds
|
timeout = 5 # seconds
|
||||||
|
|
||||||
lf_r = LFRequest.LFRequest(url)
|
lf_r = LFRequest.LFRequest(url)
|
||||||
json_response = lf_r.getAsJson()
|
json_response = lf_r.getAsJson(True)
|
||||||
#print(json_response)
|
|
||||||
j_printer = pprint.PrettyPrinter(indent=2)
|
j_printer = pprint.PrettyPrinter(indent=2)
|
||||||
for record in json_response['interfaces']:
|
j_printer.pprint(json_response)
|
||||||
j_printer.pprint(record)
|
|
||||||
|
#for record in json_response['interfaces']:
|
||||||
|
#j_printer.pprint(record)
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user