Daniel Sheppard 3 лет назад
Родитель
Сommit
5bcc3a3fb9
3 измененных файлов с 7 добавлено и 2 удалено
  1. 2 0
      docs/models/ipam/l2vpn.md
  2. 4 1
      docs/models/ipam/l2vpntermination.md
  3. 1 1
      netbox/ipam/forms/models.py

+ 2 - 0
docs/models/ipam/l2vpn.md

@@ -17,3 +17,5 @@ Each L2VPN instance must have one of the following type associated with it:
 * MPLS-EVPN
 * PBB-EVPN
 
+!!!note
+    Choosing VPWS, EPL, EP-LAN, EP-TREE will result in only being able to add 2 terminations to a given L2VPN.

+ 4 - 1
docs/models/ipam/l2vpntermination.md

@@ -9,4 +9,7 @@ The following types of L2VPN's are considered point-to-point:
 * VPWS
 * EPL
 * EP-LAN
-* EP-TREE
+* EP-TREE
+
+!!!note
+    Choosing any of the above types of L2VPN's will result in only being able to add 2 terminations to a given L2VPN.

+ 1 - 1
netbox/ipam/forms/models.py

@@ -976,7 +976,7 @@ class L2VPNTerminationForm(NetBoxModelForm):
         if interface and vlan and vminterface:
             raise ValidationError('Cannot assign a interface, vlan and vminterface')
         elif interface and vlan:
-            raise ValidationError('Cannot assign both a interface and vlan')
+            raise Validatio`nError('Cannot assign both a interface and vlan')
         elif interface and vminterface:
             raise ValidationError('Cannot assign both a interface and vminterface')
         elif vlan and vminterface: