Fixes #18271: Require only encryption OR authentication algorithm when creating an IPSec proposal via REST API

This commit is contained in:
Jeremy Stretch 2024-12-27 10:44:23 -05:00
parent 10748edc3a
commit b9abb3200c

View File

@ -64,10 +64,12 @@ class IKEPolicySerializer(NetBoxModelSerializer):
class IPSecProposalSerializer(NetBoxModelSerializer):
encryption_algorithm = ChoiceField(
choices=EncryptionAlgorithmChoices
choices=EncryptionAlgorithmChoices,
required=False
)
authentication_algorithm = ChoiceField(
choices=AuthenticationAlgorithmChoices
choices=AuthenticationAlgorithmChoices,
required=False
)
class Meta: