From 2172ddde61734eaca5c3761309520c42291f95fb Mon Sep 17 00:00:00 2001 From: Craig Askings Date: Thu, 10 Oct 2024 00:28:53 +1000 Subject: [PATCH] Add EVPN-VPWS to L2VPNTypeChoices (#17694) * Add EVPN-VPWS to the availbable L2VPN Connection Types * Updated documentation to reference the new L2VPN type. --- docs/models/vpn/l2vpn.md | 1 + netbox/vpn/choices.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/models/vpn/l2vpn.md b/docs/models/vpn/l2vpn.md index 79b7435bf..1167c1c17 100644 --- a/docs/models/vpn/l2vpn.md +++ b/docs/models/vpn/l2vpn.md @@ -28,6 +28,7 @@ The technology employed in forming and operating the L2VPN. Choices include: * VXLAN-EVPN * MPLS-EVPN * PBB-EVPN +* EVPN-VPWS !!! note Designating the type as VPWS, EPL, EP-LAN, EP-TREE will limit the L2VPN instance to two terminations. diff --git a/netbox/vpn/choices.py b/netbox/vpn/choices.py index 4aa97f615..751454049 100644 --- a/netbox/vpn/choices.py +++ b/netbox/vpn/choices.py @@ -219,6 +219,7 @@ class L2VPNTypeChoices(ChoiceSet): TYPE_VXLAN_EVPN = 'vxlan-evpn' TYPE_MPLS_EVPN = 'mpls-evpn' TYPE_PBB_EVPN = 'pbb-evpn' + TYPE_EVPN_VPWS = 'evpn-vpws' CHOICES = ( ('VPLS', ( @@ -232,6 +233,7 @@ class L2VPNTypeChoices(ChoiceSet): ('L2VPN E-VPN', ( (TYPE_MPLS_EVPN, 'MPLS EVPN'), (TYPE_PBB_EVPN, 'PBB EVPN'), + (TYPE_EVPN_VPWS, 'EVPN VPWS') )), ('E-Line', ( (TYPE_EPL, 'EPL'),