Skip to content

Instantly share code, notes, and snippets.

@badaniya
badaniya / NVO-15479-manual-test.md
Last active April 16, 2026 21:40
NVO-15479: Manual test evidence — portAdminStatus and channelized fields fix

NVO-15479: Manual Test Evidence — portAdminStatus, channelized, macLockingEnabled fields

Summary

Fix for portAdminStatus, channelized, and macLockingEnabled fields missing from GET /nvo/v1/device/port-descriptions response when a port is admin-down.

Root cause: asset_port_description_view used apc.enabled::int AS port_admin_status which cast false → 0. Since 0 has no mapping in the PortAdminStatus enum, GetStringFromEnum returned "", and json:"portAdminStatus,omitempty" silently dropped the field from the JSON response. Same issue for channelized and macLockingEnabled (bools with omitempty).

Fix:

  • PCM SQL view: CASE WHEN apc.enabled = true THEN 1 WHEN apc.enabled = false THEN 2 ELSE 0 END AS port_admin_status