Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix IP address table shows counts for interfaces and devices rather than actual values. #6614

Open
2 of 12 tasks
nrnvgh opened this issue Dec 5, 2024 · 1 comment
Open
2 of 12 tasks
Assignees
Labels
type: enhancement Enhancement to existing functionality of the application

Comments

@nrnvgh
Copy link
Contributor

nrnvgh commented Dec 5, 2024

As ...

Ozzie - Operator

I want ...

A way to see at a glance the device and interface of the IPs in a prefix. This request is also designed to bring the behavior of this table in line with the main Prefixes table, as updated in #6231 (see also: #6613).

So that ...

The IP address table displays a more useful view showing which IPs are associated with which device+interface.

I know this is done when...

The prefix IP address table (e.g. https://demo.nautobot.com/ipam/prefixes/d265dacf-ddc5-4287-ba2a-23e923f6e750/ip-addresses/) behaves like the previous behavior unless a IP is assigned to more than one device/interface. Basically, if an IP is assigned to a single interface, the device name and interface name should be displayed. If the IP is assigned to more than one interface on the same device, the device name should be displayed and a count of interfaces can be displayed. If an IP is assigned to interfaces on multiple devices, a count should be displayed for both fields.

Behavior of the other count-related columns should be updated as well, if needed:

  • VM Machines
  • Virtual Machines
  • Dynamic Groups

Optional - Feature groups this request pertains to.

  • Automation
  • Circuits
  • DCIM
  • IPAM
  • Misc (including Data Sources)
  • Organization
  • Apps (and other Extensibility)
  • Security (Secrets, etc)
  • Image Management
  • UI/UX
  • Documentation
  • Other (not directly a platform feature)

Database Changes

No response

External Dependencies

No response

@nrnvgh nrnvgh added triage This issue is new and has not been reviewed. type: feature Introduction of substantial new functionality to the application labels Dec 5, 2024
@glennmatthews glennmatthews self-assigned this Dec 5, 2024
@glennmatthews glennmatthews added type: enhancement Enhancement to existing functionality of the application and removed type: feature Introduction of substantial new functionality to the application triage This issue is new and has not been reviewed. labels Dec 5, 2024
@glennmatthews
Copy link
Contributor

The requested logic is going to take some time to implement. In an upcoming PR (mainly focused on addressing #6605) I'll at least be able to make the "Interfaces" and "VM Interfaces" columns render a single interface name/label if present, similar to what's been done elsewhere recently in the UI. What this PR won't do (at least yet) is render the name of a single device in the Devices column (this is trickier to do efficiently because it's a nested database lookup, e.g. IPAddress.interfaces[0].device.name instead of just IPAddress.interfaces[0].name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Enhancement to existing functionality of the application
Projects
None yet
Development

No branches or pull requests

2 participants