Allow search for MAC address #4923

Closed
opened 2025-12-29 19:22:18 +01:00 by adam · 6 comments
Owner

Originally created by @holtgrewe on GitHub (May 18, 2021).

NetBox version

v.2.11.3

Feature type

Change to existing functionality

Proposed functionality

Allow searching for interfaces by MAC address.

  • Type MAC into search box.
  • Press enter.
  • Resulting match(es) are displayed.

Use case

It would help to locate MAC adresses as seen in MAC address tables in routers etc.

Database changes

No response

External dependencies

No response

Originally created by @holtgrewe on GitHub (May 18, 2021). ### NetBox version v.2.11.3 ### Feature type Change to existing functionality ### Proposed functionality Allow searching for interfaces by MAC address. - Type MAC into search box. - Press enter. - Resulting match(es) are displayed. ### Use case It would help to locate MAC adresses as seen in MAC address tables in routers etc. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurestatus: revisions needed labels 2025-12-29 19:22:18 +01:00
adam closed this issue 2025-12-29 19:22:18 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 18, 2021):

This ability already exists in NetBox.

@jeremystretch commented on GitHub (May 18, 2021): This ability already exists in NetBox.
Author
Owner

@holtgrewe commented on GitHub (May 18, 2021):

@jeremystretch Interesting. I'm running Netbox v2.11.3 via Docker. Could you confirm that it works on your side? Would it work with the provided example data (so we can run a common test, e.g., in Docker, to isolate the problem)?

@holtgrewe commented on GitHub (May 18, 2021): @jeremystretch Interesting. I'm running Netbox `v2.11.3` via Docker. Could you confirm that it works on your side? Would it work with the provided example data (so we can run a common test, e.g., in Docker, to isolate the problem)?
Author
Owner

@jeremystretch commented on GitHub (May 18, 2021):

Yes, it works; please see the associated filter test. You can also test it yourself on the public demo instance.

@jeremystretch commented on GitHub (May 18, 2021): Yes, it works; please see [the associated filter test](https://github.com/netbox-community/netbox/blob/5ca7f375d3bce1826381f91c694f990e825a4e70/netbox/dcim/tests/test_filtersets.py#L1384). You can also test it yourself on the [public demo instance](https://demo.netbox.dev/).
Author
Owner

@holtgrewe commented on GitHub (May 18, 2021):

I just added 7c:32:66:de:cb:06 to this interface:

typing 7c:32:66:de:cb:06 into the search box yields nothing

image

Sorry for being thick here... what am I doing wrong?

@holtgrewe commented on GitHub (May 18, 2021): I just added `7c:32:66:de:cb:06` to this interface: - https://demo.netbox.dev/dcim/interfaces/1/edit/?return_url=/dcim/devices/1/interfaces/ typing `7c:32:66:de:cb:06` into the search box yields nothing ![image](https://user-images.githubusercontent.com/521780/118717131-efb74c00-b825-11eb-927b-bf58968d3041.png) Sorry for being thick here... what am I doing wrong?
Author
Owner

@jeremystretch commented on GitHub (May 18, 2021):

That's the global search box: You want the interfaces filter (at /dcim/interfaces/). The global search doesn't search for any device components.

@jeremystretch commented on GitHub (May 18, 2021): That's the global search box: You want the interfaces filter (at /dcim/interfaces/). The global search doesn't search for any device components.
Author
Owner

@holtgrewe commented on GitHub (May 18, 2021):

Excellent! That worked now. Sorry for the noise.

@holtgrewe commented on GitHub (May 18, 2021): Excellent! That worked now. Sorry for the noise.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4923