From b9abb3200c3d637e86af126e3ca70da1e362b6c7 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 27 Dec 2024 10:44:23 -0500 Subject: [PATCH] Fixes #18271: Require only encryption OR authentication algorithm when creating an IPSec proposal via REST API --- netbox/vpn/api/serializers_/crypto.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/netbox/vpn/api/serializers_/crypto.py b/netbox/vpn/api/serializers_/crypto.py index c11b8de2b..dac3bc519 100644 --- a/netbox/vpn/api/serializers_/crypto.py +++ b/netbox/vpn/api/serializers_/crypto.py @@ -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: