Global search results not showing Virtual Machine primary IP address #1300

Closed
opened 2025-12-29 16:31:13 +01:00 by adam · 4 comments
Owner

Originally created by @candlerb on GitHub (Oct 13, 2017).

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.1

Description

When you do a global search, and you get tables for matching Devices and Virtual Machines, the Devices have an IP address column but the Virtual Machines do not.

Relates to #1496: if you go to the Virtual Machines listing and do a search there the IP address is now shown, but the corresponding update to global search results page was not made.

Originally created by @candlerb on GitHub (Oct 13, 2017). ### Issue type [ ] Feature request <!-- Requesting the implementation of a new feature --> [X] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> ### Environment * Python version: 3.5.2 * NetBox version: 2.2.1 ### Description When you do a global search, and you get tables for matching Devices and Virtual Machines, the Devices have an IP address column but the Virtual Machines do not. Relates to #1496: if you go to the Virtual Machines listing and do a search there the IP address is now shown, but the corresponding update to global search results page was not made.
adam added the type: feature label 2025-12-29 16:31:13 +01:00
adam closed this issue 2025-12-29 16:31:13 +01:00
Author
Owner

@darkstar commented on GitHub (Oct 13, 2017):

Could you please describe what exactly you are searching for?

If I enter an IP Address (that exists and is attached to a VM) in the global search box, I get 3 tables, Aggregates, Prefixes and IP Addresses. The 3rd table correctly shows the IP Address, and shows the VM as "parent", no matter if it's the primary IP for the VM or not.

@darkstar commented on GitHub (Oct 13, 2017): Could you please describe what exactly you are searching for? If I enter an IP Address (that exists and is attached to a VM) in the global search box, I get 3 tables, Aggregates, Prefixes and IP Addresses. The 3rd table correctly shows the IP Address, and shows the VM as "parent", no matter if it's the primary IP for the VM or not.
Author
Owner

@candlerb commented on GitHub (Oct 13, 2017):

Using the global search box on the home page, I search for a device or VM by name, entering part of its name. For example, let's say I enter "ftp".

I then see devices with "ftp" in their name, and VMs with "ftp" in their name.

In this results page, the table of devices includes primary IP address; however the table of VMs is missing the primary IP address column.

update

Just to be clear, the global search results page is /search/?q=ftp&obj_type=

This is different to going to the virtual machines page and searching there, which is /virtualization/virtual-machines/?q=ftp. In this case, the results do include a column for the IP address.

@candlerb commented on GitHub (Oct 13, 2017): Using the global search box on the home page, I search for a device or VM by name, entering part of its name. For example, let's say I enter "ftp". I then see devices with "ftp" in their name, and VMs with "ftp" in their name. In this results page, the table of devices includes primary IP address; however the table of VMs is missing the primary IP address column. **update** Just to be clear, the global search results page is `/search/?q=ftp&obj_type=` This is different to going to the virtual machines page and searching there, which is `/virtualization/virtual-machines/?q=ftp`. In this case, the results *do* include a column for the IP address.
Author
Owner

@jeremystretch commented on GitHub (Oct 13, 2017):

This was added for devices in #1561. We can add it for VMs too.

@jeremystretch commented on GitHub (Oct 13, 2017): This was added for devices in #1561. We can add it for VMs too.
Author
Owner

@darkstar commented on GitHub (Oct 13, 2017):

Ah I see, yes, you are correct, that is indeed missing. I searched for an IP that's why I got a different result

@darkstar commented on GitHub (Oct 13, 2017): Ah I see, yes, you are correct, that is indeed missing. I searched for an IP that's why I got a different result
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1300