Skip to content

Commit

Permalink
Fixes #14817: Relax required fields for IKE & IPSec models on bulk im…
Browse files Browse the repository at this point in the history
…port
jeremystretch committed Jan 17, 2024
1 parent 530a15e commit 621c3cc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions netbox/vpn/forms/bulk_import.py
Original file line number Diff line number Diff line change
@@ -151,7 +151,8 @@ class IKEProposalImportForm(NetBoxModelImportForm):
)
authentication_algorithm = CSVChoiceField(
label=_('Authentication algorithm'),
choices=AuthenticationAlgorithmChoices
choices=AuthenticationAlgorithmChoices,
required=False
)
group = CSVChoiceField(
label=_('Group'),
@@ -191,11 +192,13 @@ class Meta:
class IPSecProposalImportForm(NetBoxModelImportForm):
encryption_algorithm = CSVChoiceField(
label=_('Encryption algorithm'),
choices=EncryptionAlgorithmChoices
choices=EncryptionAlgorithmChoices,
required=False
)
authentication_algorithm = CSVChoiceField(
label=_('Authentication algorithm'),
choices=AuthenticationAlgorithmChoices
choices=AuthenticationAlgorithmChoices,
required=False
)

class Meta:
@@ -209,7 +212,8 @@ class Meta:
class IPSecPolicyImportForm(NetBoxModelImportForm):
pfs_group = CSVChoiceField(
label=_('Diffie-Hellman group for Perfect Forward Secrecy'),
choices=DHGroupChoices
choices=DHGroupChoices,
required=False
)
proposals = CSVModelMultipleChoiceField(
queryset=IPSecProposal.objects.all(),

0 comments on commit 621c3cc

Please sign in to comment.