Fixes #5483,#11106 - pass the virtualswitch value to fog
We can't pass the network id directly to the fog, but it accepts the virtualswitch parameter, that we can use to point to the right value.
Also, it fixes another issue, where we used the vsphere network id to match against the interface network value, in case of portgroup, but a `key` value should be used instead, as the key and id might differ in some situations. (cherry picked from commit d4af7cae07f78bd047290e68af37b55122e0ed4b)
Related issues
Bug #5483: Network label empty after cloning vware vm using image and distributed switch for network
Bug #11106: Foreman 1.8.2 with VMware errors with: Could not find virtual machine network interface matching x.x.x.x
Fixes #5483,#11106 - pass the virtualswitch value to fog
We can't pass the network id directly to the fog, but it accepts the
virtualswitch parameter, that we can use to point to the right value.
Also, it fixes another issue, where we used the vsphere network id to
match against the interface network value, in case of portgroup, but a
`key` value should be used instead, as the key and id might differ in
some situations.
(cherry picked from commit d4af7cae07f78bd047290e68af37b55122e0ed4b)