ping() typed its arguments into the interactive shell as they came, so a destination such as "1.2.3.4; id" ran the command after the semicolon as the login user. destination and source now go through shlex.quote, and count, timeout, size and ttl are coerced with int(), which refuses anything that is not a number before a command is sent. The command is built in _ping.py, next to its parser, which keeps linux.py within its recorded length. Closes #55
28 lines
999 B
JSON
28 lines
999 B
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": 14,
|
|
"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": 103,
|
|
"napalm_linux/linux.py::LinuxDriver.get_vpn_tunnels": 152,
|
|
"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": 2140
|
|
},
|
|
"untyped_public": []
|
|
}
|