We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 994f505 commit c432757Copy full SHA for c432757
PowerArubaCX/Public/Neighbors.ps1
@@ -20,6 +20,9 @@ function Get-ArubaCXNeighbors {
20
21
#>
22
Param(
23
+ [Parameter (Mandatory = $false, ValueFromPipeline = $true)]
24
+ [ValidateScript( { Confirm-ArubaCXVrfs $_ })]
25
+ [psobject]$vrf_pp,
26
[Parameter(Mandatory = $false, position = 1)]
27
[String]$vrf = "*",
28
[Parameter(Mandatory = $false)]
@@ -42,6 +45,11 @@ function Get-ArubaCXNeighbors {
42
45
43
46
Process {
44
47
48
+ #get vrf name from vrf_pp ps object (based by pipeline)
49
+ if ($vrf_pp) {
50
+ $vrf = $vrf_pp.name
51
+ }
52
+
53
$invokeParams = @{ }
54
if ( $PsBoundParameters.ContainsKey('depth') ) {
55
$invokeParams.add( 'depth', $depth )
0 commit comments