Commit 7b42e36
authored
PR #401 added '' to the ValidateSet of -Duplex, -POE_Mode, -POE_Type,
and -RF_Role on Set-NBDCIMInterface as an empty-string sentinel. The
sentinel is translated to \$null in process {} before JSON body
serialization, so NetBox sees {"field": null} and clears the value.
scripts/Verify-ValidateSetParity.ps1 has no way to know the '' is a
PowerNetbox-internal clearing marker rather than a real value, so it
flagged these as 'Extra in PowerNetbox'. That's expected, not a bug —
add four exemptions with an explanatory comment pointing at PR #401.
Also adds RF_Role preventively: it doesn't currently surface in the
parity output (score below match threshold) but uses the same
sentinel pattern, so if a future NetBox change shifts the score
above threshold the exemption is already in place.
Tool output: 8 -> 5 findings against both v4.5.8 and v4.6.0-beta1
(the 5 remaining are the pre-existing #392 catalog-adds plus the
known Get-NBBranch wrong-class match).
1 parent ecc3fb8 commit 7b42e36
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
0 commit comments