driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 14s
driver / types (pull_request) Successful in 1m3s
driver / test (3.12) (pull_request) Successful in 1m25s
driver / test (3.13) (pull_request) Successful in 1m13s
driver / lowest (pull_request) Successful in 45s
driver / build (pull_request) Successful in 32s
driver / security (pull_request) Successful in 1m10s
CI / driver (pull_request) Successful in 3m6s
driver / publish (pull_request) Skipped
apply_dhcp_reservationset wrote adds first, then updates in the order of the desired set. Kea keeps addresses unique at each write, so when an address moved from one reservation to another, the reservation taking it was refused as a duplicate whenever it came first. The changes are now ordered (_dhcp_order): an update that moves a reservation off its address goes before the change that takes that address, along a chain from its free end, and adds come after every update. A swap or rotation of addresses has no such order; its changes are still tried, so a server that checks only at the commit takes them, and a refused one's [failed] line says it was a swap and with which reservations. Nothing is moved to a temporary address: the contract knows no free one, and a failed second write would leave it there. The diff is computed against one read of the reservations, shared with diff_dhcp_reservations. Refused rows still do not stop the others, the rest is committed and DhcpApplyError follows, as since 4.35.1. Closes #106
38 lines
1.8 KiB
JSON
38 lines
1.8 KiB
JSON
{
|
|
"coverage_floor": 95.0,
|
|
"function_complexity": {
|
|
"napalm_device_types/_ucd_metrics.py::build_if_metrics": 20,
|
|
"napalm_device_types/_ucd_metrics.py::collect_ucd_metrics": 17,
|
|
"napalm_device_types/host_firewall.py::_iptables_rule": 11,
|
|
"napalm_device_types/host_firewall.py::_module_match": 13,
|
|
"napalm_device_types/host_firewall.py::_module_options": 14,
|
|
"napalm_device_types/host_firewall.py::_nft_field": 15,
|
|
"napalm_device_types/host_firewall.py::_nft_match": 12,
|
|
"napalm_device_types/host_firewall.py::_nft_rule": 16,
|
|
"napalm_device_types/host_firewall.py::_parse_nft": 14,
|
|
"napalm_device_types/host_firewall.py::rule_text": 14,
|
|
"napalm_device_types/host_status.py::_reboot": 12,
|
|
"napalm_device_types/lag.py::add_lag_interfaces": 11,
|
|
"napalm_device_types/listening.py::parse_listening_sockets": 13,
|
|
"napalm_device_types/service_clusters.py::_patroni": 11,
|
|
"napalm_device_types/ssh_server.py::plan_ssh_hardening": 38,
|
|
"napalm_device_types/virtual_ips.py::_keepalived": 12
|
|
},
|
|
"function_lines": {
|
|
"napalm_device_types/_ucd_metrics.py::collect_ucd_metrics": 119,
|
|
"napalm_device_types/dhcp.py::DhcpServerMixin.diff_dhcp_subnets": 60,
|
|
"napalm_device_types/firewall_rules.py::FirewallRuleMixin.diff_firewall_rules": 56,
|
|
"napalm_device_types/hypervisor.py::HypervisorDriver.create_vm_from_cloud_init": 84,
|
|
"napalm_device_types/hypervisor.py::HypervisorDriver.get_vm_config": 77,
|
|
"napalm_device_types/ssh_server.py::plan_ssh_hardening": 60,
|
|
"napalm_device_types/storage.py::StorageDriver.get_volumes": 52,
|
|
"napalm_device_types/switch.py::SwitchDriver.get_dot1x_ports": 51,
|
|
"napalm_device_types/switch.py::SwitchDriver.get_poe_status": 63
|
|
},
|
|
"mypy_relaxed": [],
|
|
"python_file_lines": {
|
|
"napalm_device_types/models.py": 1454
|
|
},
|
|
"untyped_public": []
|
|
}
|