Merge ~raharper/cloud-init:fix/cloud-init-network-rename-with-v2 into cloud-init:master
Proposed by
Ryan Harper
Status: | Merged |
---|---|
Approved by: | Scott Moser |
Approved revision: | 425de9363cecf740df7c7ee3f815a1dc2803a5f4 |
Merged at revision: | 0d30c9575f9e3e4cfb7771cee992e7f669ac3e76 |
Proposed branch: | ~raharper/cloud-init:fix/cloud-init-network-rename-with-v2 |
Merge into: | cloud-init:master |
Diff against target: |
180 lines (+137/-17) 2 files modified
cloudinit/net/__init__.py (+46/-17) cloudinit/net/tests/test_init.py (+91/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email:
|
Description of the change
net: accept network-config in netplan format for renaming interfaces
net.apply_
version 1 format. When users include a netplan format network-config the
rename code does not find any of the 'set-name' directives and does not
rename any of the interfaces. This causes some netplan configurations to
fail.
This patch adds support for parsing netplan format and extracts the needed
information (macaddress and set-name values) to allow cloud-init to issue
interface rename commands.
LP: #1709715
To post a comment you must log in.
PASSED: Continuous integration, rev:6b29ea05bda f2696db95076138 8fd413334ebc93 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 718/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 718/rebuild
https:/