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

Host physical adapters section only shows vSwitch info, not distributed switch #27

Closed
mattallford opened this issue Apr 6, 2019 · 1 comment
Assignees
Labels
in progress Assignee is currently focusing on this issue

Comments

@mattallford
Copy link
Contributor

Describe the bug
In the section for host physical adapters, the report currently only shows the name of a virtual standard switch (vSwitch) that a vmnic is associated with. If the vmnic is associated with a distributed switch, it is not shown here.

To Reproduce
Steps to reproduce the behavior:

  1. Run the report in an environment where hosts are connected to a distributed switch
  2. Review the "Physical Adapters" section of the report and observe the 'vSwitch' column is empty

Expected behavior
This table should list the name of the switch the vmnic is associated with whether is be a standard or distributed switch.

Screenshots
image

System (please provide the following information about the system from which you are trying to generate a report):

  • OS: Windows 10
  • Windows PowerShell version: 5.1
  • 3rd party PowerShell module name and version: VMware PowerCLI 11.2
  • AsBuiltReport Core module version: 1.0.0
  • AsBuiltReport Report module name and version: AsBuiltReport.VMware.vSphere 1.0.0
@mattallford mattallford changed the title Host physical adapters section only shows vSwitch info, not dVS or NVDS Host physical adapters section only shows vSwitch info, not distributed switch Apr 6, 2019
@tpcarman tpcarman added the help wanted Extra attention is needed label May 6, 2019
@tpcarman
Copy link
Contributor

Fix to be included in next release

'vSwitch' = 
    if ($VMHost.ExtensionData.Config.Network.Vswitch.Pnic -contains $PhysicalNetAdapter.Key) {
        ($VMHost.ExtensionData.Config.Network.Vswitch | Where-Object {$_.Pnic -eq $PhysicalNetAdapter.Key}).Name
    } elseif ($VMHost.ExtensionData.Config.Network.ProxySwitch.Pnic -contains $PhysicalNetAdapter.Key) {
        ($VMHost.ExtensionData.Config.Network.ProxySwitch | Where-Object {$_.Pnic -eq $PhysicalNetAdapter.Key}).DvsName
    } else {
        '--'
    }

@tpcarman tpcarman added in progress Assignee is currently focusing on this issue and removed help wanted Extra attention is needed labels Jul 23, 2019
@tpcarman tpcarman self-assigned this Jul 23, 2019
@tpcarman tpcarman mentioned this issue Jul 23, 2019
7 tasks
@tpcarman tpcarman mentioned this issue Feb 4, 2020
7 tasks
@tpcarman tpcarman closed this as completed Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress Assignee is currently focusing on this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants