-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Milestone
Description
Deployment Type
Self-hosted
NetBox Version
v4.3.2
Python Version
3.11
Steps to Reproduce
- Create two wireless-capable interfaces on two different devices (e.g., type = "802.11be").
- Create one valid
WirelessLinkusing those interfaces — this should succeed. - Attempt to create a
WirelessLinkusing an invalid (non-wireless) interface forinterface_b, while keepinginterface_avalid. - Submit the form or API request.
Expected Behavior
A ValidationError should be raised indicating that interface_b is not a valid wireless interface.
The error should appear on the interface_b field as:
interface_b: "<type> is not a wireless interface."
Observed Behavior
Instead, the ValidationError appears on the interface_a field even though it is interface_b that is invalid.
netbox/netbox/wireless/models.py
Lines 207 to 212 in 0e68901
| if self.interface_b.type not in WIRELESS_IFACE_TYPES: | |
| raise ValidationError({ | |
| 'interface_a': _( | |
| "{type} is not a wireless interface." | |
| ).format(type=self.interface_b.get_type_display()) | |
| }) |
This creates confusion because the message doesn't correspond to the actual invalid field.
Metadata
Metadata
Assignees
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application