-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add Get-NSXLogicalSwitch cmdlet #12
Conversation
We can filter by vlan, transport_zone(_id), display_name and switching_profile_id add also Multi Connection test
@@ -59,6 +59,9 @@ Describe "Connect to a NSX-T (using multi connection)" { | |||
It "Use Multi connection for call Get (Policy Infra) Segments" { | |||
{ Get-NSXTPolicyInfraSegments -connection $nsx } | Should Not throw | |||
} | |||
It "Use Multi connection for call Get (Policy Infra) Segments" { | |||
{ Get-NSXTPolicyInfraSegments -connection $nsx } | Should Not throw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong cmdlet
psNSXT/Public/logical-switches.ps1
Outdated
Display Logical Switches with switching_profile_id ede3e69a-6562-49a6-98c4-d23408bd832c | ||
|
||
.EXAMPLE | ||
Get-NSXTLogicalSwitches -display_name TZ-VLAN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need fix example
} | ||
|
||
It "Get Logical Switches" { | ||
$sg = Get-NSXTLogicalSwitches |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$sg => $ls
psNSXT/Public/logical-switches.ps1
Outdated
switch ( $PSCmdlet.ParameterSetName ) { | ||
"id" { | ||
#When there is a id, search on response | ||
$response.results | Where-Object { $_.id -eq $id } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can use directly id filter /$id
for confirm, it is a Logical Switches objects
with filtering by id, vlan, (display_)name, transport_zone...