mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-17 03: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)]
|
[Parameter(Mandatory = $true)]
|
||||||
[string]$Type,
|
[string]$Type,
|
||||||
|
|
||||||
|
[ValidatePattern('^[0-9a-f]{6}$')]
|
||||||
[string]$Color,
|
[string]$Color,
|
||||||
|
|
||||||
[uint16]$Positions = 1,
|
[uint16]$Positions = 1,
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ function Set-NetboxDCIMRearPort
|
||||||
|
|
||||||
[string]$Type,
|
[string]$Type,
|
||||||
|
|
||||||
|
[ValidatePattern('^[0-9a-f]{6}$')]
|
||||||
[string]$Color,
|
[string]$Color,
|
||||||
|
|
||||||
[uint16]$Positions,
|
[uint16]$Positions,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue