cloudbase-init/cloudbaseinit
Lukas Kranz 04c642408b Use MSFT_NetAdapter to rename adapter
Currently renaming the adapter on windows 22 core does not cause an error but also has no effect
INFO cloudbaseinit.plugins.common.networkconfig [-] Renaming network adapter "Ethernet" to "some-adapter-name"
...
ERROR cloudbaseinit.init cloudbaseinit.exception.ItemNotFoundException: Network interface with name "some-adapter-name" not found

Using Win32_NetworkAdapter or netsh for renaming network adapters does not work,
although they do not fail, but do no-operation (probably a Windows bug).

Fixes: https://github.com/cloudbase/cloudbase-init/issues/101

Change-Id: I6b05b313742dd6ff2553dd67b374a8aa4fefd0a7
Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
2024-04-22 09:10:48 +03:00
..
conf Add Google Cloud Engine metadata service 2020-02-26 13:26:05 +02:00
metadata Accept drives with vFAT label 'cidata' as a configdrive. 2023-05-14 06:32:55 +00:00
models nocloud: support for cloud-init network version 1 2020-07-01 19:08:47 +03:00
osutils Use MSFT_NetAdapter to rename adapter 2024-04-22 09:10:48 +03:00
plugins crypto: replaced openssl with cryptography module 2022-12-12 14:22:56 +02:00
tests Use MSFT_NetAdapter to rename adapter 2024-04-22 09:10:48 +03:00
utils winrmlistener: use sha2 instead of insecure sha1 2024-03-04 11:36:06 +00:00
__init__.py Initial commit 2012-12-01 23:50:15 +02:00
constant.py Implement cloud-config runcmd 2020-01-14 17:05:01 +02:00
exception.py Retry user load profile on Windows 2021-01-13 13:04:26 +02:00
init.py use instance_id as string for plugin sections 2023-10-12 17:09:05 +03:00
shell.py Fix pythoncom thread model error 2019-08-19 16:35:56 +03:00
version.py Merge "Fixed all typos in comments" 2017-08-18 09:01:34 +00:00