Allow interface MAC address to accept spaces during input validation #7316

Closed
opened 2025-12-29 20:21:41 +01:00 by adam · 0 comments
Owner

Originally created by @ghost on GitHub (Dec 2, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.3.9

Feature type

Change to existing functionality

Proposed functionality

Resubmitting as FR. When inputting a MAC address on an interface with spaces NetBox should allow the validation and strip whitespaces.

Add a MAC address value to an interface
The following formats are accepted

00:12:37:F9:5B:7C
00-12-37-F9-5B-7C
001237-F95B7C
001237F95B7C

The following format is not accepted
00 12 37 F9 5B 7C

205179639-81955ecf-7c98-4c4b-91c4-e483cbfd48eb

Use case

Several devices output their MAC address with spaces. Being able to copy+paste a MAC address that contains spaces is more user friendly. NetBox already accepts ":" and "-", please add the ability to also accept space.

Database changes

None.

External dependencies

None

Originally created by @ghost on GitHub (Dec 2, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.3.9 ### Feature type Change to existing functionality ### Proposed functionality Resubmitting as FR. When inputting a MAC address on an interface with spaces NetBox should allow the validation and strip whitespaces. Add a MAC address value to an interface The following formats are accepted >00:12:37:F9:5B:7C 00-12-37-F9-5B-7C 001237-F95B7C 001237F95B7C The following format is not accepted `00 12 37 F9 5B 7C` ![205179639-81955ecf-7c98-4c4b-91c4-e483cbfd48eb](https://user-images.githubusercontent.com/119611316/205328000-83367908-3700-4554-95a8-5f89adcb0781.png) ### Use case Several devices output their MAC address with spaces. Being able to copy+paste a MAC address that contains spaces is more user friendly. NetBox already accepts ":" and "-", please add the ability to also accept space. ### Database changes None. ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 20:21:41 +01:00
adam closed this issue 2025-12-29 20:21:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7316