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