I just repeated a new install this morning to make sure I was starting
from a fairly clean state.
The full output of "netplan get":
root@test1:~# netplan get
network:
version: 2
renderer: NetworkManager
ethernets:
eno1:
addresses:
- "10.163.216.155/24"
nameservers:
addresses:
- 128.210.11.57
- 128.210.11.5
search:
- bio.purdue.edu
- rcac.purdue.edu
- purdue.edu
routes:
- to: "default"
via: "10.163.216.1"
This is what I have in /usr/lib/netplan:
00-network-manager-all.yaml
PLACEHOLDER
and in /etc/netplan:
00-installer-config.yaml
Thanks for having me look at that because I found out something that
surprised me. I had expected ALL the files in /etc/netplan to override
the settings in /usr/lib/netplan. But it looks like netplan combines the
list of YAML files in /usr/lib/netplan and in /etc/netplan, sorts this
combined list, and then applies the settings in this sorted order so
that the settings from later YAML files (regardless of whether they're
from /usr/lib/netplan or /etc/netplan) override settings from prior
files. By renaming 00-installer-config.yaml to anything
lexicographically after 00-network-manager-all.yaml, I get the results
that I expect to get.
I also see now that the man page for netplan states, "netplan get [
network.ethernets.eth0 ] reads YAML files from
/{etc,lib,run}/netplan/*.yaml and returns a merged view of the
current configuration."
This "merged view" is what got me into trouble! I expect configuration
settings found under /etc (normally set by the user) to override
anything set under /usr/lib (set by package installers). Do you find
this behavior to be a little unusual also?
Thanks for pointing me in the right direction!
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136774
Title:
netplan renderer is forced to be NetworkManager when ubuntu-desktop is
installed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2136774/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs