Skip to content

Commit 1180180

Browse files
committed
Fixes #18271: Require only encryption OR authentication algorithm when creating an IPSec proposal via REST API
1 parent 5d53994 commit 1180180

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

netbox/vpn/api/serializers_/crypto.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ class Meta:
6464

6565
class IPSecProposalSerializer(NetBoxModelSerializer):
6666
encryption_algorithm = ChoiceField(
67-
choices=EncryptionAlgorithmChoices
67+
choices=EncryptionAlgorithmChoices,
68+
required=False
6869
)
6970
authentication_algorithm = ChoiceField(
70-
choices=AuthenticationAlgorithmChoices
71+
choices=AuthenticationAlgorithmChoices,
72+
required=False
7173
)
7274

7375
class Meta:

0 commit comments

Comments
 (0)