Alessandro Pilotti 01a501ff1d Return NetConnectionID instead of Name
Change get_network_adapters in the Windows osutils to return
NetConnectionID from the Win32_NetworkAdapter WMI query in
place of Name.

Different Windows API use different naming to identify the name and
description of a network adapter.
In the case of Win32_NetworkAdapter, NetConnectionID is the actual
name (e.g. Ethernet1) while Name is the description (e.g. Microsoft
Hyper-V Network Adapter).

Partially-Implements: blueprint json-network-config
Change-Id: I3e690a9e0b763e9829a3eddd91a47454d3eb1df8
2018-09-05 20:42:09 +03:00
..