mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01: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
5d53994222
commit
1180180f84
@ -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