-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
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
Description
Deployment Type
Self-hosted
NetBox Version
v3.7.2
Python Version
3.8
Steps to Reproduce
error message is defined as "A U0 device type ...", but I think the correct definition is "A 0U device type ...".
netbox/netbox/dcim/models/devices.py
Lines 873 to 880 in 011bc5b
| # Prevent 0U devices from being assigned to a specific position | |
| if hasattr(self, 'device_type'): | |
| if self.position and self.device_type.u_height == 0: | |
| raise ValidationError({ | |
| 'position': _( | |
| "A U0 device type ({device_type}) cannot be assigned to a rack position." | |
| ).format(device_type=self.device_type) | |
| }) |
Expected Behavior
A 0U device type ({device_type}) cannot be assigned to a rack position.
Observed Behavior
A U0 device type ({device_type}) cannot be assigned to a rack position.
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