Add more status on vlan object #11179

Closed
opened 2025-12-29 21:41:27 +01:00 by adam · 1 comment
Owner

Originally created by @f-m-a-d on GitHub (May 15, 2025).

NetBox version

v4.3.0

Feature type

Data model extension

Proposed functionality

Vlan objects have 3 status : active, reserved and deprecated.

We would need 2 additional statuses : planned and staged

Use case

We have a script that allows them to deploy vlans automatically from Netbox information.
At present, we use the reserved status, but we would like to keep this status for another use.

Database changes

No response

External dependencies

No response

Originally created by @f-m-a-d on GitHub (May 15, 2025). ### NetBox version v4.3.0 ### Feature type Data model extension ### Proposed functionality Vlan objects have 3 status : active, reserved and deprecated. We would need 2 additional statuses : planned and staged ### Use case We have a script that allows them to deploy vlans automatically from Netbox information. At present, we use the reserved status, but we would like to keep this status for another use. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 21:41:27 +01:00
adam closed this issue 2025-12-29 21:41:27 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 15, 2025):

You can add custom choices using the FIELD_CHOICES configuration parameter:

FIELD_CHOICES = {
    'ipam.VLAN.status+': (
        ('planned', 'Planned', 'green'),
        ('staged', 'Staged', 'blue'),
    )
}
@jeremystretch commented on GitHub (May 15, 2025): You can add custom choices using the [`FIELD_CHOICES`](https://netboxlabs.com/docs/netbox/en/stable/configuration/data-validation/#field_choices) configuration parameter: ```python FIELD_CHOICES = { 'ipam.VLAN.status+': ( ('planned', 'Planned', 'green'), ('staged', 'Staged', 'blue'), ) } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11179