IPAMAddress(New): Add Validate for Assigned Object Type

Can be only dcim.interface or virtualization.vminterface
This commit is contained in:
Alexis La Goutte 2021-07-23 16:43:34 +02:00
parent a610ed6b9f
commit 70b01257de

View file

@ -96,6 +96,7 @@ function New-NetboxIPAMAddress {
[string]$Dns_name, [string]$Dns_name,
[ValidateSet('dcim.interface', 'virtualization.vminterface', IgnoreCase = $true)]
[string]$Assigned_Object_Type, [string]$Assigned_Object_Type,
[int]$Assigned_Object_Id, [int]$Assigned_Object_Id,