Răsfoiți Sursa

Add EVPN-VPWS to L2VPNTypeChoices (#17694)

* Add EVPN-VPWS to the availbable L2VPN Connection Types

* Updated documentation to reference the new L2VPN type.
Craig Askings 1 an în urmă
părinte
comite
2172ddde61
2 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 1 0
      docs/models/vpn/l2vpn.md
  2. 2 0
      netbox/vpn/choices.py

+ 1 - 0
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.

+ 2 - 0
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'),