Skip to content

Commit 621c3cc

Browse files
committed
Fixes #14817: Relax required fields for IKE & IPSec models on bulk import
1 parent 530a15e commit 621c3cc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

netbox/vpn/forms/bulk_import.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ class IKEProposalImportForm(NetBoxModelImportForm):
151151
)
152152
authentication_algorithm = CSVChoiceField(
153153
label=_('Authentication algorithm'),
154-
choices=AuthenticationAlgorithmChoices
154+
choices=AuthenticationAlgorithmChoices,
155+
required=False
155156
)
156157
group = CSVChoiceField(
157158
label=_('Group'),
@@ -191,11 +192,13 @@ class Meta:
191192
class IPSecProposalImportForm(NetBoxModelImportForm):
192193
encryption_algorithm = CSVChoiceField(
193194
label=_('Encryption algorithm'),
194-
choices=EncryptionAlgorithmChoices
195+
choices=EncryptionAlgorithmChoices,
196+
required=False
195197
)
196198
authentication_algorithm = CSVChoiceField(
197199
label=_('Authentication algorithm'),
198-
choices=AuthenticationAlgorithmChoices
200+
choices=AuthenticationAlgorithmChoices,
201+
required=False
199202
)
200203

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

0 commit comments

Comments
 (0)