-
Notifications
You must be signed in to change notification settings - Fork 925
Closed
Description
Describe the bug
In vcsim, portgroup moid is set to each DistributedVirtualPort's key
, while it should be set to portgroupKey
.
To Reproduce
Steps to reproduce the behavior:
- run
vcsim
- execute
govc
as below
govc dvs.portgroup.info -pg DC0_DVPG0 DVS0
Expected behavior
A clear and concise description of what you expected to happen.
PortKey
has the port numberPortgroupKey
has the portgroup moid
# vCenter (7.0u3)
> govc dvs.portgroup.info -pg DC0_DVPG0 DVS0
PortgroupKey: dvportgroup-28
DvsUuid: 50 21 44 2c 15 ff a7 d2-28 b0 2a c5 2c 26 45 5d
VlanId: 0
PortKey: 2
PortgroupKey: dvportgroup-28
DvsUuid: 50 21 44 2c 15 ff a7 d2-28 b0 2a c5 2c 26 45 5d
VlanId: 0
PortKey: 3
PortgroupKey: dvportgroup-28
DvsUuid: 50 21 44 2c 15 ff a7 d2-28 b0 2a c5 2c 26 45 5d
VlanId: 0
PortKey: 4
PortgroupKey: dvportgroup-28
DvsUuid: 50 21 44 2c 15 ff a7 d2-28 b0 2a c5 2c 26 45 5d
VlanId: 0
PortKey: 5
PortgroupKey: dvportgroup-28
DvsUuid: 50 21 44 2c 15 ff a7 d2-28 b0 2a c5 2c 26 45 5d
VlanId: 0
PortKey: 6
PortgroupKey: dvportgroup-28
DvsUuid: 50 21 44 2c 15 ff a7 d2-28 b0 2a c5 2c 26 45 5d
VlanId: 0
PortKey: 7
Affected version
Please provide details on the version used, e.g. release tag, commit, module version, etc.
- vcsim 0.27.2
- govc 0.27.2
Screenshots/Debug Output
If applicable, add screenshots or debug output to help explain your problem.
PortKey
has the portgroup moidPortgroupKey
is empty
> govc dvs.portgroup.info -pg DC0_DVPG0 DVS0
PortgroupKey:
DvsUuid: fea97929-4b2d-5972-b146-930c6d0b4014
VlanId: 0
PortKey: dvportgroup-11
PortgroupKey:
DvsUuid: fea97929-4b2d-5972-b146-930c6d0b4014
VlanId: 0
PortKey: dvportgroup-13
Additional context
Add any other context about the problem here.
description of vSphere Web Services API
DistributedVirtualPort
key: Port key.
portgroupKey: Key of the portgroup DistributedVirtualPortgroup to which the port belongs, if any.
Metadata
Metadata
Assignees
Labels
No labels