Skip to content

Commit

Permalink
Fixes #18271: Require only encryption OR authentication algorithm whe…
Browse files Browse the repository at this point in the history
…n creating an IPSec proposal via REST API
  • Loading branch information
jeremystretch committed Dec 27, 2024
1 parent 1691713 commit f8ffdfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions netbox/vpn/api/serializers_/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ class Meta:

class IPSecProposalSerializer(NetBoxModelSerializer):
encryption_algorithm = ChoiceField(
choices=EncryptionAlgorithmChoices
choices=EncryptionAlgorithmChoices,
required=False
)
authentication_algorithm = ChoiceField(
choices=AuthenticationAlgorithmChoices
choices=AuthenticationAlgorithmChoices,
required=False
)

class Meta:
Expand Down

0 comments on commit f8ffdfe

Please sign in to comment.