fixes #23909 - vsphere: prefer network search by key
Creating a new VMware image fails during provisioning with "Could not match network interface". Searching for distributed virtual switch via key BEFORE searching with the nic_attrs structure resolves a false positive match when vCenter contains VDS migrated from prior install with ref attribute that matches a different object's key.
Related issues
Bug #23909: VMware “Could not match network interface” on VM creation
fixes #23909 - vsphere: prefer network search by key
Creating a new VMware image fails during provisioning with
"Could not match network interface". Searching for distributed
virtual switch via key BEFORE searching with the nic_attrs structure
resolves a false positive match when vCenter contains VDS migrated
from prior install with ref attribute that matches a different
object's key.