"""No ``get_services_need_restart`` on OpenWrt (NetOrk/netork#2750). napalm-device-types' ``ServicesRestartMixin`` finds replaced code as deleted files in ``/proc//maps``. On OpenWrt an upgrade leaves the old files in the read-only image, and the kernel can name them by their ``/rom`` or ``/overlay/upper`` path (Linux before 6.8 shows an overlay file's real path), so that scan could read clean right after an upgrade. The driver does not offer it, and the caller shows the reading as not made. """ from napalm_openwrt.openwrt import OpenWrtDriver def test_it_is_not_offered(): assert not hasattr(OpenWrtDriver, "get_services_need_restart") assert not hasattr(OpenWrtDriver, "_run_services_restart_command")