Add netmask notation to prefix detail page #4181

Closed
opened 2025-12-29 18:33:40 +01:00 by adam · 2 comments
Owner

Originally created by @arjenvri on GitHub (Oct 9, 2020).

Environment

  • Python version: 3.9
  • NetBox version: 2.9.3

Proposed Functionality

It would be convenient for users to also supply the netmask within the prefix details page.
Current only the slash notation is mentioned. Maybe just adding something like

192.168.1.0/24 (255.255.255.0)

Use Case

Users registering and obtaining data from NSOT often require the netmask type of notation to configure devices. This would simplify information gathering for the more uncommon subnets.

Database Changes

No changes needed

External Dependencies

Originally created by @arjenvri on GitHub (Oct 9, 2020). ### Environment * Python version: 3.9 * NetBox version: 2.9.3 <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality It would be convenient for users to also supply the netmask within the prefix details page. Current only the slash notation is mentioned. Maybe just adding something like 192.168.1.0/24 **(255.255.255.0)** ### Use Case Users registering and obtaining data from NSOT often require the netmask type of notation to configure devices. This would simplify information gathering for the more uncommon subnets. ### Database Changes No changes needed ### External Dependencies
adam added the status: duplicate label 2025-12-29 18:33:40 +01:00
adam closed this issue 2025-12-29 18:33:40 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 9, 2020):

Expressing the mask in dotted-decimal format is redundant. NetBox uses the CIDR notation (e.g. /24) universally because it is the more efficient expression. If the dotted-decimal format is needed, conversion should be performed by the client.

@jeremystretch commented on GitHub (Oct 9, 2020): Expressing the mask in dotted-decimal format is redundant. NetBox uses the CIDR notation (e.g. /24) universally because it is the more efficient expression. If the dotted-decimal format is needed, conversion should be performed by the client.
Author
Owner

@DanSheps commented on GitHub (Oct 9, 2020):

This was also raised under: #3236

@DanSheps commented on GitHub (Oct 9, 2020): This was also raised under: #3236
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4181