Skip to content

Commit 41592f5

Browse files
committed
Convert network provider tests to vcsim test context
We'll eventually need the vcsim test context to be aware of networking in order to create VMs with the correct NICs in the ConfigSpec. Do the conversion now in preparation of fixing an immediate bug in the provider.
1 parent 36142e4 commit 41592f5

File tree

4 files changed

+171
-216
lines changed

4 files changed

+171
-216
lines changed

pkg/vmprovider/providers/vsphere/network/network_provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (l InterfaceInfoList) GetNetplan(
122122

123123
// NetOp (VDS) never assigns MacAddress to the NetworkInterface status, therefore
124124
// netplanEthernet.Match.MacAddress will be empty.
125-
// At this point, it is assumed that VirtuaLMachine.Config.Hardware.Device has MacAddress generated.
125+
// At this point, it is assumed that VirtualMachine.Config.Hardware.Device has MacAddress generated.
126126
netplanEthernet.Match.MacAddress = NormalizeNetplanMac(curNic.GetVirtualEthernetCard().MacAddress)
127127
}
128128

0 commit comments

Comments
 (0)