driver / standard (pull_request) Successful in 18s
driver / lint (pull_request) Successful in 14s
driver / types (pull_request) Successful in 1m12s
driver / test (3.12) (pull_request) Successful in 1m11s
driver / test (3.13) (pull_request) Successful in 1m6s
driver / lowest (pull_request) Successful in 29s
driver / build (pull_request) Successful in 32s
driver / security (pull_request) Successful in 1m14s
CI / driver (pull_request) Successful in 1m15s
driver / publish (pull_request) Skipped
netOrk could save a Linux host's new name but not apply it: the driver had no set_hostname(), so apply-hostname answered "The driver linux does not support set_hostname()". HostnameMixin.set_hostname() takes a bare name or an FQDN. The short name goes to hostnamectl, or to /etc/hostname and hostname(1) without systemd. /etc/hosts follows: every line naming the old name, else the 127.0.1.1 line; a file with neither is left alone. A cloud-init host gets preserve_hostname: true, or its next boot restores the image's name. Names that are not RFC 1123 hostnames are refused before anything runs. Files are staged unprivileged and installed by root (_install_file_as_root), never written from privileged stdin. It lives in its own module because linux.py may not grow (quality ratchet); the two lines it adds there are offset by a stale comment and an import that fits on one line, so the baseline drops to 2286.
29 lines
1.0 KiB
JSON
29 lines
1.0 KiB
JSON
{
|
|
"coverage_floor": 57.0,
|
|
"function_complexity": {
|
|
"napalm_linux/linux.py::LinuxDriver._collect_platform_info": 24,
|
|
"napalm_linux/linux.py::LinuxDriver._parse_cron_line": 12,
|
|
"napalm_linux/linux.py::LinuxDriver.get_networks": 13,
|
|
"napalm_linux/linux.py::LinuxDriver.get_route_to": 23,
|
|
"napalm_linux/linux.py::LinuxDriver.get_snmp_config": 13,
|
|
"napalm_linux/linux.py::LinuxDriver.get_vpn_tunnels": 28,
|
|
"napalm_linux/linux.py::LinuxDriver.search_packages": 26
|
|
},
|
|
"function_lines": {
|
|
"napalm_linux/linux.py::LinuxDriver._collect_platform_info": 106,
|
|
"napalm_linux/linux.py::LinuxDriver.get_networks": 52,
|
|
"napalm_linux/linux.py::LinuxDriver.get_route_to": 138,
|
|
"napalm_linux/linux.py::LinuxDriver.get_vpn_tunnels": 152,
|
|
"napalm_linux/linux.py::LinuxDriver.ping": 52,
|
|
"napalm_linux/linux.py::LinuxDriver.search_packages": 106,
|
|
"napalm_linux/linux.py::LinuxDriver.uninstall_package": 51
|
|
},
|
|
"mypy_relaxed": [
|
|
"napalm_linux.linux"
|
|
],
|
|
"python_file_lines": {
|
|
"napalm_linux/linux.py": 2286
|
|
},
|
|
"untyped_public": []
|
|
}
|