Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG in VDPortGroup #334

Open
hunnj opened this issue Oct 5, 2022 · 0 comments
Open

BUG in VDPortGroup #334

hunnj opened this issue Oct 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@hunnj
Copy link

hunnj commented Oct 5, 2022

Describe the bug

There is a bug in VDPortGroup-Module.
When you try to create a new Portgroup on a VDS via the config below, you will receive an error like the following one:

Config:
VDPortGroup VDS_main_VLAN2_SAP {
Server = $AllNodes.Server
Credential = $AllNodes.Credential
Name = 'VDS_main_VLAN2_SAP'
VdsName = 'VDS_main'
Ensure = 'Present'
NumPorts = 0
Notes = 'MyVDPortGroup Notes'
PortBinding = 'Static'
VLanId = 2
#DependsOn = '[VDSwitch]VDSwitch'
}

Error:
Set method of VDPortGroup DSC Resource failed with the following error: Could not create distributed port group
| VDS_main_VLAN2_SAP on distributed switch VDS_main. For more information: 05.10.2022 14:05:04 New-VDPortgroup The
| operation for the entity "VDS_main" failed with the following message: "The spec.numPorts exceeds the limit 100.".
| Cannot increase the number of ports according to the specification, because total number of ports 128 after increase
| will then exceed 100, maximum number of ports allowed on vDS

The Issue seems to be related to the number of Ports the Portgroups should receive.

Reproduction steps

  1. Create a new VDS
  2. Create a new VDS-Portgroup
  3. Error appears
    ...

Expected behavior

From my point of view, the script should run with out any error, when the number of ports is less then 100.

Additional context

No response

@hunnj hunnj added the bug Something isn't working label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant