Skip to content

Commit 21962b3

Browse files
jmcguirJoel L. McGuire
andauthored
fix #17960 by adding 6 more tunnel encap options (#18097)
* fix #17960 * updated post feedback --------- Co-authored-by: Joel L. McGuire <[email protected]>
1 parent 7a92c20 commit 21962b3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

netbox/vpn/choices.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,23 @@ class TunnelStatusChoices(ChoiceSet):
2323

2424
class TunnelEncapsulationChoices(ChoiceSet):
2525
ENCAP_GRE = 'gre'
26-
ENCAP_IP_IP = 'ip-ip'
2726
ENCAP_IPSEC_TRANSPORT = 'ipsec-transport'
2827
ENCAP_IPSEC_TUNNEL = 'ipsec-tunnel'
28+
ENCAP_IP_IP = 'ip-ip'
29+
ENCAP_L2TP = 'l2tp'
30+
ENCAP_OPENVPN = 'openvpn'
31+
ENCAP_PPTP = 'pptp'
32+
ENCAP_WIREGUARD = 'wireguard'
2933

3034
CHOICES = [
3135
(ENCAP_IPSEC_TRANSPORT, _('IPsec - Transport')),
3236
(ENCAP_IPSEC_TUNNEL, _('IPsec - Tunnel')),
3337
(ENCAP_IP_IP, _('IP-in-IP')),
3438
(ENCAP_GRE, _('GRE')),
39+
(ENCAP_WIREGUARD, _('WireGuard')),
40+
(ENCAP_OPENVPN, _('OpenVPN')),
41+
(ENCAP_L2TP, _('L2TP')),
42+
(ENCAP_PPTP, _('PPTP')),
3543
]
3644

3745

0 commit comments

Comments
 (0)