diff options
| author | Kurt Stieger <kurt@easygo.at> | 2019-03-04 15:54:25 +0000 | 
|---|---|---|
| committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2019-03-04 15:54:25 +0000 | 
| commit | bd35300ba36bd63686715fa9661516a518781f6d (patch) | |
| tree | 9a2a0f4d5b8ec44575418269fb3e1b547c6ad506 /cloudinit/sources/helpers/openstack.py | |
| parent | f2f530e5960ce8afd33e7f62a9b5d8898a6d0d79 (diff) | |
| download | vyos-cloud-init-bd35300ba36bd63686715fa9661516a518781f6d.tar.gz vyos-cloud-init-bd35300ba36bd63686715fa9661516a518781f6d.zip  | |
net: append type:dhcp[46] only if dhcp[46] 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[46] 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.
LP: #1818032
Diffstat (limited to 'cloudinit/sources/helpers/openstack.py')
0 files changed, 0 insertions, 0 deletions
