Merge ~smoser/cloud-init:bug/1705147-rename-support-mixed-case-macs into cloud-init:master
Proposed by
Scott Moser
Status: | Merged |
---|---|
Merged at revision: | c0060fe4892197179a5cfbfd3239cf3b6c3e5029 |
Proposed branch: | ~smoser/cloud-init:bug/1705147-rename-support-mixed-case-macs |
Merge into: | cloud-init:master |
Diff against target: |
77 lines (+33/-2) 2 files modified
cloudinit/net/__init__.py (+6/-2) tests/unittests/test_net.py (+27/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ryan Harper | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+327714@code.launchpad.net |
Commit message
net: fix renaming of nics to support mac addresses written in upper case.
The network device renaming code previously required the case of
the mac address input to match that of the data read from the system.
For example, if user provided network config with mac address
in upper case, then cloud-init would not rename the device correctly
as /sys/class/
The fix here is to always compare lower case mac addresses.
LP: #1705147
To post a comment you must log in.
PASSED: Continuous integration, rev:c0060fe4892 197179a5cfbfd32 39cf3b6c3e5029 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 55/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: CentOS 6 & 7: Build & Test
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 55/rebuild
https:/