Skip to content

Commit

Permalink
Added GridStatus property on Get-IBCLINetwork output objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Bolger committed Mar 4, 2017
1 parent bc48407 commit 4377bff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions Posh-IBCLI/Posh-IBCLI.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Posh-IBCLI.psm1'

# Version number of this module.
ModuleVersion = '1.1'
ModuleVersion = '1.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -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

Expand Down
8 changes: 7 additions & 1 deletion Posh-IBCLI/Public/Get-IBCLINetwork.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ function Get-IBCLINetwork
$props.IPv6Gateway = [String]::Empty
$props.IPv6VLANTag = [String]::Empty
$props.IPv6DSCPValue = [String]::Empty
$props.GridStatus = [String]::Empty

continue
}
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 4377bff

Please sign in to comment.