19 lines
414 B
Python
19 lines
414 B
Python
import json
|
|
|
|
import switch_client
|
|
import todo
|
|
from extractors.xe_page import fetch_tables
|
|
|
|
PATH = "/SNTP.html"
|
|
|
|
|
|
def get_sntp(session) -> dict:
|
|
tables = fetch_tables(session, PATH)
|
|
return tables["SNTP Configuration"]["record"]
|
|
|
|
|
|
if __name__ == "__main__":
|
|
session = switch_client.get_session()
|
|
print(json.dumps(get_sntp(session), indent=2))
|
|
todo.mark_implemented(switch_client.BASE_URL + PATH)
|