Skip to content

Commit bf4b418

Browse files
committed
fix: use "vEthernet (LoopbackAdapterHostNCConnectivity)" when CNS is checking for existance of loopback adapter for Apipa network Creation.
1 parent 92abdfe commit bf4b418

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cns/hnsclient/hnsclient_windows.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ const (
5353
// Name of the loopback adapter needed to create Host NC apipa network
5454
hostNCLoopbackAdapterName = "LoopbackAdapterHostNCConnectivity"
5555

56+
// Name of the loopback adapter needed to create Host NC apipa network
57+
vEthernethostNCLoopbackAdapterName = "vEthernet (LoopbackAdapterHostNCConnectivity)"
58+
5659
// protocolTCP indicates the TCP protocol identifier in HCN
5760
protocolTCP = "6"
5861

@@ -298,7 +301,7 @@ func createHostNCApipaNetwork(
298301
}
299302

300303
// Create loopback adapter needed for this HNS network
301-
if interfaceExists, _ := networkcontainers.InterfaceExists(hostNCLoopbackAdapterName); !interfaceExists {
304+
if interfaceExists, _ := networkcontainers.InterfaceExists(vEthernethostNCLoopbackAdapterName); !interfaceExists {
302305
ipconfig := cns.IPConfiguration{
303306
IPSubnet: cns.IPSubnet{
304307
IPAddress: localIPConfiguration.GatewayIPAddress,

0 commit comments

Comments
 (0)