Skip to content

Commit

Permalink
fix #17960 by adding 6 more tunnel encap options (#18097)
Browse files Browse the repository at this point in the history
* fix #17960

* updated post feedback

---------

Co-authored-by: Joel L. McGuire <[email protected]>
  • Loading branch information
jmcguir and Joel L. McGuire authored Dec 9, 2024
1 parent 7a92c20 commit 21962b3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion netbox/vpn/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,23 @@ class TunnelStatusChoices(ChoiceSet):

class TunnelEncapsulationChoices(ChoiceSet):
ENCAP_GRE = 'gre'
ENCAP_IP_IP = 'ip-ip'
ENCAP_IPSEC_TRANSPORT = 'ipsec-transport'
ENCAP_IPSEC_TUNNEL = 'ipsec-tunnel'
ENCAP_IP_IP = 'ip-ip'
ENCAP_L2TP = 'l2tp'
ENCAP_OPENVPN = 'openvpn'
ENCAP_PPTP = 'pptp'
ENCAP_WIREGUARD = 'wireguard'

CHOICES = [
(ENCAP_IPSEC_TRANSPORT, _('IPsec - Transport')),
(ENCAP_IPSEC_TUNNEL, _('IPsec - Tunnel')),
(ENCAP_IP_IP, _('IP-in-IP')),
(ENCAP_GRE, _('GRE')),
(ENCAP_WIREGUARD, _('WireGuard')),
(ENCAP_OPENVPN, _('OpenVPN')),
(ENCAP_L2TP, _('L2TP')),
(ENCAP_PPTP, _('PPTP')),
]


Expand Down

0 comments on commit 21962b3

Please sign in to comment.