cloud-init network config 2 rename does not match with name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
Looking at the source code of cloud-init, when it tries to read a network configuration file, it looks for MAC address. Looking at the source code, it gives an impression that MAC address is a requirement to rename interfaces.
However, looking at this documentation, https:/
This is the most misleading part because, firstly, the source code does NOT search through 'name' and uses 'device_id' instead, whereas the documentation says:
"name: <(scalar)>
Current interface name. Globs are supported, and the primary use case for matching on names, as selecting one fixed name can be more easily achieved with having no match: at all and just using the ID (see above). Note that currently only networkd supports globbing, NetworkManager does not."
tags: | added: cloud-init |
Hi,
Thanks for filing the bug. You're right that the current code does not handle interface renames when using netplan (v2) config during boot which means that the only currently supported rename operations happen if a macaddress is provided.