This commit is contained in:
Joel L. McGuire 2024-11-25 08:53:34 -06:00
parent 9c7f2ec98c
commit b5ae0e9bbb

View File

@ -22,16 +22,28 @@ class TunnelStatusChoices(ChoiceSet):
class TunnelEncapsulationChoices(ChoiceSet): class TunnelEncapsulationChoices(ChoiceSet):
ENCAP_EOIP = 'eoip'
ENCAP_GRE = 'gre' ENCAP_GRE = 'gre'
ENCAP_IP_IP = 'ip-ip'
ENCAP_IPSEC_TRANSPORT = 'ipsec-transport' ENCAP_IPSEC_TRANSPORT = 'ipsec-transport'
ENCAP_IPSEC_TUNNEL = 'ipsec-tunnel' ENCAP_IPSEC_TUNNEL = 'ipsec-tunnel'
ENCAP_IP_IP = 'ip-ip'
ENCAP_L2TP = 'l2tp'
ENCAP_OPENVPN = 'openvpn'
ENCAP_PPTP = 'pptp'
ENCAP_SSTP = 'sstp'
ENCAP_WIREGUARD = 'wireguard'
CHOICES = [ CHOICES = [
(ENCAP_IPSEC_TRANSPORT, _('IPsec - Transport')), (ENCAP_IPSEC_TRANSPORT, _('IPsec - Transport')),
(ENCAP_IPSEC_TUNNEL, _('IPsec - Tunnel')), (ENCAP_IPSEC_TUNNEL, _('IPsec - Tunnel')),
(ENCAP_IP_IP, _('IP-in-IP')), (ENCAP_IP_IP, _('IP-in-IP')),
(ENCAP_GRE, _('GRE')), (ENCAP_GRE, _('GRE')),
(ENCAP_WIREGUARD, _('WireGuard')),
(ENCAP_OPENVPN, _('OpenVPN')),
(ENCAP_L2TP, _('L2TP')),
(ENCAP_PPTP, _('PPTP')),
(ENCAP_EOIP, _('EoIP')),
(ENCAP_SSTP, _('SSTP')),
] ]