driver / standard (pull_request) Successful in 14s
driver / lint (pull_request) Successful in 12s
driver / types (pull_request) Successful in 56s
driver / test (3.12) (pull_request) Successful in 53s
driver / test (3.13) (pull_request) Successful in 51s
driver / lowest (pull_request) Successful in 25s
driver / build (pull_request) Successful in 30s
driver / security (pull_request) Successful in 57s
CI / driver (pull_request) Successful in 2m16s
driver / publish (pull_request) Skipped
netOrk aligns every device's NTP servers and time zone with its site's (NetOrk/netork#2360, #2366). A ProCurve keeps them as configuration lines: sntp server priority <1-3> (or ntp server lines when 16.x runs timesync ntp), time timezone <minutes> and time daylight-time-rule. get_time_sync() reads those lines from show running-config, over REST through the /cli endpoint, and the zone as None: the switch keeps minutes and a rule, no name. configure_time_sync() writes the servers in the protocol the switch runs (SNTP unless it runs NTP, switching TimeP to sntp unicast), keeping those already in place from the first on; the zone as minutes and the switch's own US/EU rule, or user-defined dates for other Sunday rules, from the zone's POSIX rule. What the switch cannot take is refused before anything is sent: more than 3 SNTP or 8 NTP servers, host names, half an hour of summer time, a change on a weekday. A change is saved with write memory; values already in place are not sent again, so the alignment on every poll does not churn. Over REST the writes need the CLI, so the temporary SSH session configure_snmp_agent opened is now the _config_cli() context manager both use. get_ntp_servers() reads through get_time_sync() on every transport; it and get_ntp_stats() move to time_sync.py with the rest of the clock, so procurve.py shrinks (1383 -> 1339 lines). The unused parse_ntp_servers() and ProcurveApiClient.get_ntp_servers() are gone.
34 lines
1.3 KiB
JSON
34 lines
1.3 KiB
JSON
{
|
|
"coverage_floor": 54.0,
|
|
"function_complexity": {
|
|
"napalm_procurve/api_client.py::ProcurveApiClient.get_interfaces": 14,
|
|
"napalm_procurve/api_client.py::ProcurveApiClient.get_vlans": 15,
|
|
"napalm_procurve/parsers.py::_parse_procurve_uptime": 11,
|
|
"napalm_procurve/parsers.py::parse_ip_interfaces": 14,
|
|
"napalm_procurve/parsers.py::parse_lldp_neighbors_detail": 16,
|
|
"napalm_procurve/parsers.py::parse_system_info": 18,
|
|
"napalm_procurve/parsers.py::parse_vlans_from_running_config": 11,
|
|
"napalm_procurve/procurve.py::ProcurveDriver._cli_set_interface": 13,
|
|
"napalm_procurve/procurve.py::ProcurveDriver.open": 13,
|
|
"napalm_procurve/procurve.py::ProcurveDriver.set_lag_members": 12
|
|
},
|
|
"function_lines": {
|
|
"napalm_procurve/api_client.py::ProcurveApiClient.get_interfaces": 62,
|
|
"napalm_procurve/api_client.py::ProcurveApiClient.get_vlans": 101,
|
|
"napalm_procurve/parsers.py::parse_ip_interfaces": 58,
|
|
"napalm_procurve/parsers.py::parse_lldp_neighbors_detail": 59,
|
|
"napalm_procurve/parsers.py::parse_system_info": 80,
|
|
"napalm_procurve/parsers.py::parse_vlans_from_running_config": 79,
|
|
"napalm_procurve/procurve.py::_parse_ping_output": 58
|
|
},
|
|
"mypy_relaxed": [
|
|
"napalm_procurve.api_client",
|
|
"napalm_procurve.parsers",
|
|
"napalm_procurve.procurve"
|
|
],
|
|
"python_file_lines": {
|
|
"napalm_procurve/procurve.py": 1345
|
|
},
|
|
"untyped_public": []
|
|
}
|