Skip to content

Commit

Permalink
Init PortKeys in DistributedVirtualPortgroup
Browse files Browse the repository at this point in the history
Fixes #979
  • Loading branch information
Yongkun Anfernee Gui committed Feb 21, 2018
1 parent 3c1bff8 commit 92ce424
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simulator/dvs.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ func (s *DistributedVirtualSwitch) AddDVPortgroupTask(c *types.AddDVPortgroup_Ta
VmVnicNetworkResourcePoolKey: spec.VmVnicNetworkResourcePoolKey,
}

pg.PortKeys = []string{}

s.Portgroup = append(s.Portgroup, pg.Self)
s.Summary.PortgroupName = append(s.Summary.PortgroupName, pg.Name)

Expand Down

0 comments on commit 92ce424

Please sign in to comment.