Customizable default roles (ip address) #1787

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

Originally created by @luqasz on GitHub (Jun 14, 2018).

Issue type

[x ] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version:
  • NetBox version:

Description

I'd like to be able to customize roles for ip addresses. Some roles are not applicable for my organization.
Use cases:

  • Select HAPROXY role for ips, so that we know that this ip is used for haproxy.
  • Select GATEWAY role to mark ip as a gateway.
Originally created by @luqasz on GitHub (Jun 14, 2018). ### Issue type [x ] Feature request <!-- An enhancement of existing functionality --> [ ] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: <!-- Example: 3.5.4 --> * NetBox version: <!-- Example: 2.1.3 --> <!-- BUG REPORTS must include: * A list of the steps needed for someone else to reproduce the bug * A description of the expected and observed behavior * Any relevant error messages (screenshots may also help) FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed --> ### Description I'd like to be able to customize roles for ip addresses. Some roles are not applicable for my organization. Use cases: * Select `HAPROXY` role for ips, so that we know that this ip is used for haproxy. * Select `GATEWAY` role to mark ip as a gateway.
adam closed this issue 2025-12-29 17:19:05 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 14, 2018):

IP address roles are not customizable. They are methods in which an IP address can be configured to operate: VIP, secondary, anycast, VRRP, etc. This has nothing to with designation for a particular application or function.

@jeremystretch commented on GitHub (Jun 14, 2018): IP address roles are not customizable. They are methods in which an IP address can be configured to operate: VIP, secondary, anycast, VRRP, etc. This has nothing to with designation for a particular application or function.
Author
Owner

@luqasz commented on GitHub (Jun 14, 2018):

IP address roles are not customizable. They are methods in which an IP address can be configured to operate: VIP, secondary, anycast, VRRP, etc. This has nothing to with designation for a particular application or function.

Prefixes and many other resources have a customizable role. Why this is different ?

@luqasz commented on GitHub (Jun 14, 2018): > IP address roles are not customizable. They are methods in which an IP address can be configured to operate: VIP, secondary, anycast, VRRP, etc. This has nothing to with designation for a particular application or function. Prefixes and many other resources have a customizable role. Why this is different ?
Author
Owner

@jeremystretch commented on GitHub (Jun 14, 2018):

It's an entirely different concept. Prefix roles are functional and arbitrary. IP address roles relate to their manner of operation. For example, you list "gateway" as a desired role. But a gateway can be any of several available roles, such as VRRP or secondary.

@jeremystretch commented on GitHub (Jun 14, 2018): It's an entirely different concept. Prefix roles are functional and arbitrary. IP address roles relate to their manner of operation. For example, you list "gateway" as a desired role. But a gateway can be any of several available roles, such as VRRP or secondary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1787