Fixed subcontrollers
This commit is contained in:
@@ -39,6 +39,16 @@ function Get-Address {
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$HostName,
|
||||
[parameter(
|
||||
Mandatory=$true,
|
||||
ValueFromPipeline=$true,
|
||||
ValueFromPipelineByPropertyName=$true,
|
||||
Position=0,
|
||||
ParameterSetName="ByHostBase"
|
||||
)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$HostBase,
|
||||
[parameter(
|
||||
Mandatory=$true,
|
||||
ValueFromPipeline=$true,
|
||||
@@ -81,6 +91,7 @@ function Get-Address {
|
||||
"ByID" { $_identifiers = @($id); break }
|
||||
"ByIP" { $_identifiers = ("search",$IP); break }
|
||||
"ByHostName" { $_identifiers = ("search_hostname",$HostName); break }
|
||||
"ByHostBase" { $_identifiers = ("search_hostbase",$HostBase); break }
|
||||
"ByTag" { $_identifiers = ("tags",$TagId,[PS.IPAM.controllers]::addresses); break }
|
||||
"BySubnetId" {
|
||||
if ($IP) {
|
||||
|
||||
Reference in New Issue
Block a user