Interfaces view: Show IP Address for FHRP Groups #6100

Closed
opened 2025-12-29 19:36:49 +01:00 by adam · 3 comments
Owner

Originally created by @dreng on GitHub (Feb 16, 2022).

NetBox version

v3.1.7

Feature type

Change to existing functionality

Proposed functionality

Regarding the Interface overview of devices, I'd suggest to show IP addresses of FHRP Groups in the column "IP Addresses" just like "normal" assigned IPs.
Another solution would be to change the information in the column "FHRP Groups" to something like "VRRPv3: 1 - 10.0.0.254/24".

Use case

The "Interface" tab of devices contains a column called "IP Addresses" which provides a very handy overview of all assigned IPs that belong to the device. Unfortunately assigned IP addresses of FHRP Groups are not shown which sometimes leads to wrong assumptions. Although it is possible to show FHRP Groups in another column it only provides information like "VRRPv3: 1" and no IP addresses either.

Database changes

No response

External dependencies

No response

Originally created by @dreng on GitHub (Feb 16, 2022). ### NetBox version v3.1.7 ### Feature type Change to existing functionality ### Proposed functionality Regarding the Interface overview of devices, I'd suggest to show IP addresses of FHRP Groups in the column "IP Addresses" just like "normal" assigned IPs. Another solution would be to change the information in the column "FHRP Groups" to something like "VRRPv3: 1 - 10.0.0.254/24". ### Use case The "Interface" tab of devices contains a column called "IP Addresses" which provides a very handy overview of all assigned IPs that belong to the device. Unfortunately assigned IP addresses of FHRP Groups are not shown which sometimes leads to wrong assumptions. Although it is possible to show FHRP Groups in another column it only provides information like "VRRPv3: 1" and no IP addresses either. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurepending closure labels 2025-12-29 19:36:49 +01:00
adam closed this issue 2025-12-29 19:36:49 +01:00
Author
Owner

@dreng commented on GitHub (Feb 18, 2022):

Just want to add that in case of solution no 2, it would be a one-liner. In netbox/dcim/tables/template_code.py, line 57...

90ee689d5a/netbox/dcim/tables/template_code.py (L54-L60)

...has to be changed into that:

{% for ip in assignment.group.ip_addresses.all %}
      <a href="{{ assignment.group.get_absolute_url }}">{{ assignment.group.get_protocol_display }}: {{ assignment.group.group_id }} ({{ ip }})</a>
{% endfor %}

It is displayed like that in other views already (e.g. in the drop down field named "FHRP Group" when editing an IP address). Thus, it may be considered a bug.

@dreng commented on GitHub (Feb 18, 2022): Just want to add that in case of solution no 2, it would be a one-liner. In netbox/dcim/tables/template_code.py, line 57... https://github.com/netbox-community/netbox/blob/90ee689d5ae61e829042e35824b4ff4201476e44/netbox/dcim/tables/template_code.py#L54-L60 ...has to be changed into that: ``` {% for ip in assignment.group.ip_addresses.all %} <a href="{{ assignment.group.get_absolute_url }}">{{ assignment.group.get_protocol_display }}: {{ assignment.group.group_id }} ({{ ip }})</a> {% endfor %} ``` It is displayed like that in other views already (e.g. in the drop down field named "FHRP Group" when editing an IP address). Thus, it may be considered a bug.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 20, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Apr 20, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (May 21, 2022):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (May 21, 2022): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6100