← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~loki-8/cloud-init:fix/1792454-netork-configuration-v2-and-translate_network into cloud-init:master

 

The proposal to merge ~loki-8/cloud-init:fix/1792454-netork-configuration-v2-and-translate_network into cloud-init:master has been updated.

Commit message changed to:

net_util: ensure static configs have netmask in translate_network result

If a DataSource provides a network configuration in version 2 and runs
on a distro which does not have a network renderer class in use, then 
the conversion of V2 to eni results in static ip configurations with
subnet prefix-length (192.168.23.1/24) rather than explicit netmask
value.

When sending such a config to net_util.translate_network the resulting
dictionary is missing the 'netmask' key for static configured addresses
breaking network configurations on multiple distributions.

This patch detects static ip configurations using prefix-length and
converts the format into the previous 'address' and 'netmask' parts
to keep compatibility for these distribtuions until they move to
the v2 network configuration.

LP: #1792454

For more details, see:
https://code.launchpad.net/~loki-8/cloud-init/+git/cloud-init/+merge/354893
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~loki-8/cloud-init:fix/1792454-netork-configuration-v2-and-translate_network into cloud-init:master.


References