mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Fixes #18271: Require only encryption OR authentication algorithm when creating an IPSec proposal via REST API
This commit is contained in:
parent
10748edc3a
commit
b9abb3200c
@ -64,10 +64,12 @@ class IKEPolicySerializer(NetBoxModelSerializer):
|
|||||||
|
|
||||||
class IPSecProposalSerializer(NetBoxModelSerializer):
|
class IPSecProposalSerializer(NetBoxModelSerializer):
|
||||||
encryption_algorithm = ChoiceField(
|
encryption_algorithm = ChoiceField(
|
||||||
choices=EncryptionAlgorithmChoices
|
choices=EncryptionAlgorithmChoices,
|
||||||
|
required=False
|
||||||
)
|
)
|
||||||
authentication_algorithm = ChoiceField(
|
authentication_algorithm = ChoiceField(
|
||||||
choices=AuthenticationAlgorithmChoices
|
choices=AuthenticationAlgorithmChoices,
|
||||||
|
required=False
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
Loading…
Reference in New Issue
Block a user