mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-15 02:35:46 +00:00
Added validate pattern for Color parameter
This commit is contained in:
parent
b8392dc49c
commit
6bd7acab49
2 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ function Add-NetboxDCIMRearPort
|
|||
[Parameter(Mandatory = $true)]
|
||||
[string]$Type,
|
||||
|
||||
[ValidatePattern('^[0-9a-f]{6}$')]
|
||||
[string]$Color,
|
||||
|
||||
[uint16]$Positions = 1,
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ function Set-NetboxDCIMRearPort
|
|||
|
||||
[string]$Type,
|
||||
|
||||
[ValidatePattern('^[0-9a-f]{6}$')]
|
||||
[string]$Color,
|
||||
|
||||
[uint16]$Positions,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue