Problem: Trying to adapt preseed_networking_setup to configure netplan
Expected outcome: New variable for use similar to <%= host_subnet.mask %> to use or a method to convert it to a prefix. I can see here (https://projects.theforeman.org/projects/foreman/wiki/TemplateWriting) IPv6 has a field like this (for obvious reasons).
Foreman and Proxy versions: 1.21.0
Foreman and Proxy plugin versions: 1.21.0
Neplan uses prefixes instead of netmasks in the configuration file. An example below.
network: version: 2 ethernets: enp0s3: addresses: [192.168.0.140/24] gateway4: 192.168.0.1 nameservers: addresses: [22.214.171.124,126.96.36.199]