mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
Fixes #18271: Require only encryption OR authentication algorithm when creating an IPSec proposal via REST API
This commit is contained in:
parent
11253f4bbe
commit
c870179e19
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user