diff --git a/CHANGELOG.md b/CHANGELOG.md index 14f0c7a..347e313 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.2 (2017-03-04) + +* Added GridStatus property on Get-IBCLINetwork output objects. It's one of the only ways to glean the grid name from the CLI. NOTE: It only seems to have a valid value for the LAN1 interface. + ## 1.1 (2016-09-21) * Fixed issue #7 - Added optional `-Force` flag to `Connect-IBCLI` and all other functions that use it. When used, the flag disables SSH host key checking. diff --git a/Posh-IBCLI/Posh-IBCLI.psd1 b/Posh-IBCLI/Posh-IBCLI.psd1 index ec4362c..1b81c3f 100644 --- a/Posh-IBCLI/Posh-IBCLI.psd1 +++ b/Posh-IBCLI/Posh-IBCLI.psd1 @@ -12,7 +12,7 @@ RootModule = 'Posh-IBCLI.psm1' # Version number of this module. -ModuleVersion = '1.1' +ModuleVersion = '1.2' # Supported PSEditions # CompatiblePSEditions = @() @@ -117,7 +117,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = 'Added optional `-Force` flag to `Connect-IBCLI` and related functions. Added quick start to readme.' + ReleaseNotes = 'Added GridStatus property on Get-IBCLINetwork output objects.' } # End of PSData hashtable diff --git a/Posh-IBCLI/Public/Get-IBCLINetwork.ps1 b/Posh-IBCLI/Public/Get-IBCLINetwork.ps1 index dc2c93b..9fc1b66 100644 --- a/Posh-IBCLI/Public/Get-IBCLINetwork.ps1 +++ b/Posh-IBCLI/Public/Get-IBCLINetwork.ps1 @@ -122,6 +122,7 @@ function Get-IBCLINetwork $props.IPv6Gateway = [String]::Empty $props.IPv6VLANTag = [String]::Empty $props.IPv6DSCPValue = [String]::Empty + $props.GridStatus = [String]::Empty continue } @@ -157,6 +158,10 @@ function Get-IBCLINetwork $props.RestrictSupportAndConsole = [Boolean]::Parse($val) continue } + if ($key -eq 'Grid Status') { + $props.GridStatus = $val + continue + } # For the rest of these properties we're just going from the CLI docs # and some educated guesses as I don't have any appliances to test # them with. @@ -221,7 +226,7 @@ function Get-IBCLINetwork Disable SSH host key checking .OUTPUTS - A Dvolve.IBCLI.Interfacecustom object for each interface with all of the parsed values returned from the command and some synthesized ones. Not all of these properties will exist for every interface. + A Dvolve.IBCLI.Interface custom object for each interface with all of the parsed values returned from the command and some synthesized ones. Not all of these properties will exist for every interface. [string] IFName [string] IPAddress [string] NetMask @@ -236,6 +241,7 @@ function Get-IBCLINetwork [string] IPv6Gateway [string] IPv6VLANTag [string] IPv6DSCPValue + [string] GridStatus .EXAMPLE Get-IBCLINetwork -ComputerName 'ns1.example.com' -Credential (Get-Credential)