cloud-init-dev team mailing list archive
Mailing list archive
[Merge] ~kurt-easygo/cloud-init:fix-network-state-dhcp into cloud-init:master
The proposal to merge ~kurt-easygo/cloud-init:fix-network-state-dhcp into cloud-init:master has been updated.
Commit message changed to:
net: append type:dhcp only if dhcp is True in v2 netconfig
When providing netplan configuration to cloud-init, the internal
network state would enable DHCP if the 'dhcp' key was present in
the source config. In netplan, dhcp is a boolean and the
value of the boolean should control whether DHCP is enabled rather
than the presence of the key. This issue leaded to inconsistant
sysconfig/network-scripts on fedora. 'BOOTPROTO' was always 'dhcp',
even if the address config was static.
After this change a dhcp subnet is added only if the 'dhcp' setting
in source cfg dict is True.
For more details, see:
Your team cloud-init commiters is requested to review the proposed merge of ~kurt-easygo/cloud-init:fix-network-state-dhcp into cloud-init:master.