cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
408 stars 149 forks source link

Drop netifaces dependency #144

Open petrutlucian94 opened 1 month ago

petrutlucian94 commented 1 month ago

The netifaces library is no longer maintained, which is why we need to drop this dependency.

There is only one place in which netifaces is being used, a trivial function that retrives the mac address for a given ip address.

Thankfully, we already have a cloudbase-init "get_adapter_addresses" function that uses ctypes to call GetAdaptersAddresses, which happens to be the same Windows function used by netifaces.

Worth mentioning that netifaces is the only compilable cloudbase-init dependency that does not provide a wheel package.

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