Issue/Bug Description:
Upon resume from sleep, /lib/systemd/system-sleep/system76-nm-restart will restart NetworkManger, causing some interfaces to be left in an inconsistent state.
Steps to reproduce (if you know):
Connect to a VPN using NetworkManager and openconnect.
Send to system to sleep
Resume from sleep
The VPN will be disconnected, but the vpn0 interface will still be up with the old IP address assigned
Connect to the VPN again
Now the vpn0 interface will have two IP addresses and routing will be broken
The issue is caused by restarting NetworkManger while it is recovering from a sleep status.
Distribution (run
cat /etc/os-release
):Related Application and/or Package Version (run
apt policy $PACKAGE NAME
):Issue/Bug Description: Upon resume from sleep, /lib/systemd/system-sleep/system76-nm-restart will restart NetworkManger, causing some interfaces to be left in an inconsistent state.
Steps to reproduce (if you know):
The issue is caused by restarting NetworkManger while it is recovering from a sleep status.
Expected behavior: Do not restart NetworkManager.