netplan-try - try a configuration, optionally rolling it back
netplan [-debug] try -h | -help
netplan [-debug] try [-config-file CONFIG_FILE] [-timeout TIMEOUT]
netplan try takes a netplan(5) configuration, applies it, and automatically rolls it back if the user does not confirm the configuration within a time limit.
This may be especially useful on remote systems, to prevent an administrator being permanently locked out of systems in the case of a network configuration error.
netplan try uses similar procedures to netplan apply, so some of the same caveats apply around virtual devices.
There are also some known bugs: if netplan try times out or is cancelled, make sure to verify if the network configuration has in fact been reverted.
As with netplan apply, a reboot should fix any issues. However, be sure to verify that the config on disk is in the state you expect before rebooting!
netplan(5), netplan-generate(8), netplan-apply(8)