Cleaning netplans after removing wireguard interface
Bug #1966197 reported by
Rahul
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hi, I am working on Ubuntu server 20.04 with network manager snap and wireguard.
I can bring up wireguard interface using:
sudo wg-quick up <conf file>
I can also bring it down with
wg-quick down <conf file>
The netplan.io then, creates a yaml in /etc/netplan
When this inerface is deleted, this netplan is not removed.
Also, when i reboot, when i run:
sudo wg-quick up <conf file>
the netplan creates a new yaml file with a different uuid, instead of recogonising it already exists.
Due to this the netplan in /etc/netplan folder piles up.
How can I fix this issue?
tags: | added: netplan network-manager wirguard |
tags: | removed: network-manager |
To post a comment you must log in.
Thank you for your report.
I think the problem here is that when you call "wg-quick up ..." it will create a new network interface that is picked up by the NetworkManager snap (and therefore netplan), but when you call "wg-quick down ..." it just tears down the interface, while NetworkManager does not recognize that and thus cannot clear the configuration.
Could you please show the output "nmcli con"? Does it show a list of wireguard connection profiles?
If so, does it help to call "nmcli con delete <UUID>" to clear this profile from NetworkManager (and also netplan YAML in /etc/netplan/)?