We have such a configuration:
network: version: 2 renderer: networkd ethernets: zz-all-en: match: name: "en*" dhcp-identifier: "mac" ens192: match: macaddress: "00:50:56:9e:16:8a" dhcp4: true set-name: "ens192"
Interface ens192 matches name pattern "en*" but rule dhcp-identifier: "mac" is not applied to this iface - after server reboot DHCP register lease by UID (not MAC address). I want to use a common section like zz-all-en in my packer template and at the same time exact interface sections like ens192 (they are added by terraform for exact VM). How should I write such common section?
OS: ubuntu 22.04 LTScloud-init --version23.3.3-0ubuntu0~22.04.1netplan: 0.106.1-7ubuntu0.22.04.2
I can update cloud-init to 24.1.1.