Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accommodate non-NSX-T Distributed Virtual Switches
Previously the vSphere CPI NSX-T Policy API assumed _all_ Distributed Virtual Switches (DVSes) were NSX-T Segments, but that assummption was false; DVSes may be managed by vSphere and not NSX-T. We now check whether the network interface controller (NIC) is NSX-T-managed before attempting to tag the NIC's port with NSX-T metadata. fixes: ``` unable to create bosh vm:CPI 'set_vm_metadata' method responded with error: CmdError{"type":"Unknown","message":"Invalid Query","ok_to_retry":false} ``` [fixes #302] [#179334136](https://www.pivotaltracker.com/story/show/179334136) Signed-off-by: Brian Cunnie <bcunnie@vmware.com>
- Loading branch information