Merge ~kurt-easygo/cloud-init:fix-network-state-dhcp into cloud-init:master
Proposed by
Kurt Stieger
Status: | Merged |
---|---|
Approved by: | Ryan Harper |
Approved revision: | bde69680d50f0d2fe5c04014ea1527ed7d5b501f |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~kurt-easygo/cloud-init:fix-network-state-dhcp |
Merge into: | cloud-init:master |
Diff against target: |
94 lines (+63/-2) 2 files modified
cloudinit/net/network_state.py (+2/-2) tests/unittests/test_net.py (+61/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Review via email:
|
Commit message
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/
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
To post a comment you must log in.
Hi,
Thank you for contributing to cloud-init.
To contribute, you must sign the Canonical Contributor License Agreement
(CLA) [1].
If you have already signed it as an individual, your Launchpad user will agreement- canonical launchpad group [2].
be listed in the contributor-
Unfortunately there is no easy way to check if an organization or company
you are doing work for has signed. If you are unsure or have questions,
email <email address hidden> or ping rharper in #cloud-init channel
via freenode.
For information on how to sign, please see the HACKING document [3].
Thanks again, and please feel free to reach out with any questions.
– www.canonical. com/contributor s /launchpad. net/~contributo r-agreement- canonical/ +members cloudinit. readthedocs. io/en/latest/ topics/ hacking. html
[1] http://
[2] https:/
[3] http://