mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Updates vpn.L2VPN docs
Also rearranges L2VPNStatusChoices so that the default value (active) is first.
This commit is contained in:
parent
e24ec8292f
commit
6f874ff133
@ -33,6 +33,19 @@ The technology employed in forming and operating the L2VPN. Choices include:
|
||||
!!! note
|
||||
Designating the type as VPWS, EPL, EP-LAN, EP-TREE will limit the L2VPN instance to two terminations.
|
||||
|
||||
### Status
|
||||
|
||||
The operational status of the L2VPN. By default, the following statuses are available:
|
||||
|
||||
* Active (default)
|
||||
* Planned
|
||||
* Faulty
|
||||
|
||||
!!! tip "Custom L2VPN statuses"
|
||||
Additional L2VPN statuses may be defined by setting `L2VPN.status` under the [`FIELD_CHOICES`](../../configuration/data-validation.md#field_choices) configuration parameter.
|
||||
|
||||
!!! info "This field was introduced in NetBox v4.3."
|
||||
|
||||
### Identifier
|
||||
|
||||
An optional numeric identifier. This can be used to track a pseudowire ID, for example.
|
||||
|
@ -272,12 +272,12 @@ class L2VPNTypeChoices(ChoiceSet):
|
||||
class L2VPNStatusChoices(ChoiceSet):
|
||||
key = 'L2VPN.status'
|
||||
|
||||
STATUS_PLANNED = 'planned'
|
||||
STATUS_ACTIVE = 'active'
|
||||
STATUS_PLANNED = 'planned'
|
||||
STATUS_DECOMMISSIONED = 'decommissioned'
|
||||
|
||||
CHOICES = [
|
||||
(STATUS_PLANNED, _('Planned'), 'cyan'),
|
||||
(STATUS_ACTIVE, _('Active'), 'green'),
|
||||
(STATUS_PLANNED, _('Planned'), 'cyan'),
|
||||
(STATUS_DECOMMISSIONED, _('Decommissioned'), 'red'),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user