Skip to content

Commit 30a7751

Browse files
committed
Additional v1.3.0 fixes
- Fixed issues with VMkernel Adpater reporting - Fixed issues with Distributed vSwitch advanced detailed reporting
1 parent bb11904 commit 30a7751

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
### Fixed
55
- Fixed Datastore table sort by Datastore Name
66
- Fixed issues with vSAN advanced detailed reporting
7+
- Fixed issues with VMkernel Adpater reporting
78
- Fixed issues with Distributed vSwitch advanced detailed reporting
89
- Fixed display issues with highlights in `README.md`
910

@@ -12,7 +13,7 @@
1213
- Added PSScriptAnalyzer & PublishPSModule GitHub Action workflows
1314
- Added comprehensive reporting for VI roles
1415
- Added advanced detailed reporting for vSAN disks
15-
- Added support for VMware Cloud environments (VMC, AVS, GVE) (Fix #87)
16+
- Added support for VMware Cloud environments (VCF, VMC, AVS, GVE) (Fix #87)
1617

1718

1819
## [1.2.1] - 2020-09-29

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ This report is compatible with the following PowerShell versions;
5454

5555
| Windows PowerShell 5.1 | PowerShell 7 |
5656
|:----------------------:|:--------------------:|
57-
| :white_check_mark: | :white_check_mark: ^ |
57+
| :white_check_mark: | :white_check_mark: |
5858

59-
^ _Note: Due to compatibility issues, VMware Update Manager information will not be reported when using PowerShell 7_
59+
_Note: Due to compatibility issues, VMware Update Manager information will not be reported when using PowerShell 7_
6060

6161
## :wrench: System Requirements
6262
PowerShell 5.1 or PowerShell 7.x, and the following PowerShell modules are required for generating a VMware vSphere As Built report.

Src/Public/Invoke-AsBuiltReport.VMware.vSphere.ps1

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
24562456
$device = $_.Device
24572457
[PSCustomObject]@{
24582458
'Adapter' = $_.Device
2459-
'Port Group' = & {
2459+
'Network Label' = & {
24602460
if ($_.Spec.Portgroup) {
24612461
$script:pg = $_.Spec.Portgroup
24622462
} else {
@@ -2476,6 +2476,8 @@ function Invoke-AsBuiltReport.VMware.vSphere {
24762476
'defaultTcpipStack' { 'Default' }
24772477
'vSphereProvisioning' { 'Provisioning' }
24782478
'vmotion' { 'vMotion' }
2479+
'vxlan' { 'nsx-overlay' }
2480+
'hyperbus' { 'nsx-hyperbus' }
24792481
$null { 'Not Applicable' }
24802482
default { $_.Spec.NetstackInstanceKey }
24812483
}
@@ -2485,8 +2487,22 @@ function Invoke-AsBuiltReport.VMware.vSphere {
24852487
$true { 'Enabled' }
24862488
$false { 'Disabled' }
24872489
}
2488-
'IP Address' = $_.Spec.IP.IPAddress
2489-
'Subnet Mask' = $_.Spec.IP.SubnetMask
2490+
'IP Address' = & {
2491+
if ($_.Spec.IP.IPAddress) {
2492+
$script:ip = $_.Spec.IP.IPAddress
2493+
} else {
2494+
$script:ip = '--'
2495+
}
2496+
$script:ip
2497+
}
2498+
'Subnet Mask' = & {
2499+
if ($_.Spec.IP.SubnetMask) {
2500+
$script:netmask = $_.Spec.IP.SubnetMask
2501+
} else {
2502+
$script:netmask = '--'
2503+
}
2504+
$script:netmask
2505+
}
24902506
'Default Gateway' = Switch ($_.Spec.IpRouteSpec.IpRouteConfig.DefaultGateway) {
24912507
$null { '--' }
24922508
default { $_.Spec.IpRouteSpec.IpRouteConfig.DefaultGateway }

0 commit comments

Comments
 (0)