net-mgmt/netbox: Update to 4.6.6
Changelog:
Enhancements:
- Enable the selection of VLANs scoped to a device's cluster or cluster group when assigning VLANs to interfaces
- Render colored badges for custom field choices in tables
- Change the default color of the DHCP IP address status from green to purple to distinguish it from "available"
- Introduce an "any" lookup for the tag and tag_id filters to match objects assigned any of the specified tags
- Add a header_safe Jinja2 filter for sanitizing HTTP header values
Performance Improvements:
- Improve the speed of bulk object deletion by avoiding per-object cascade handling and N+1 counter updates
- Avoid an unnecessary queryset evaluation when rendering export templates
Bug Fixes:
- Ensure view permissions are enforced when referencing a related object by its attributes in the REST API
- Make JournalEntry.created_by immutable after creation to prevent audit trail spoofing
- Include circuit distance when calculating the total length of a cable path
- Restrict the VLANs available for assignment to a prefix scoped to a site group
- Record changes to front/rear port mappings in the changelog
- Redact server filesystem paths from tracebacks rendered by ConfigTemplate debug mode
- Pre-populate interface attributes when using "Create & Add Another"
- Avoid raising a DataError exception when a cable length exceeds the maximum supported value
- Validate the URL scheme of RSS feed entries to prevent DOM-based cross-site scripting
- Display validation errors for form fields which lack HTML5 constraints
- Prevent the deletion of a site group from cascading to prefixes scoped to its member sites
- Restore the left border on the quick search field
- Return to the scripts list when cancelling out of the "add script" form
- Fix the resolution of port mappings when {vc_position} is used on device type component templates
- Highlight relevant dropdown fields when form validation fails
- Fix KeyError raised when validating a device assigned to a cluster scoped to a different location
- Avoid raising a KeyError for malformed IP address and prefix values submitted via the REST API
- Raise a protected-deletion error rather than a TypeError when deleting a virtual chassis with a cross-chassis LAG
- Escape object names when populating the Content-Disposition header of file responses
- Include the comments field of ASNs in the global search index
- Clear stale connector metadata from cable endpoints when deleting a profiled cable
- Ensure ContentTypeField respects its declared queryset to prevent the selection of non-public object types
- Restore the rear port fields on the front port bulk import form
- Fix the GraphQL length lookup for array filters
- Include the comments field of several models in the global search indexes
- Store a null value rather than an empty string for cable_end when removing a cable
- Fix TypeError exception when bulk adding module bays to devices
- Enforce saved filter visibility when applied via the filter or filter_id query parameter
https://github.com/netbox-community/netbox/releases/tag/v4.6.6
MFH: 2026Q3
(cherry picked from commit e4a00602b2a07043d069404b2dbc2323732164c6)