#9816: Promote IKE & IPSec proposals and policies to primary models

This commit is contained in:
Jeremy Stretch
2023-12-04 09:19:56 -05:00
parent fa10ac5e7a
commit dbaf2723ca
13 changed files with 65 additions and 52 deletions

View File

@@ -147,7 +147,7 @@ class IKEProposalImportForm(NetBoxModelImportForm):
model = IKEProposal
fields = (
'name', 'description', 'authentication_method', 'encryption_algorithm', 'authentication_algorithm',
'group', 'sa_lifetime', 'tags',
'group', 'sa_lifetime', 'comments', 'tags',
)
@@ -169,7 +169,7 @@ class IKEPolicyImportForm(NetBoxModelImportForm):
class Meta:
model = IKEPolicy
fields = (
'name', 'description', 'version', 'mode', 'proposals', 'preshared_key', 'tags',
'name', 'description', 'version', 'mode', 'proposals', 'preshared_key', 'comments', 'tags',
)
@@ -187,7 +187,7 @@ class IPSecProposalImportForm(NetBoxModelImportForm):
model = IPSecProposal
fields = (
'name', 'description', 'encryption_algorithm', 'authentication_algorithm', 'sa_lifetime_seconds',
'sa_lifetime_data', 'tags',
'sa_lifetime_data', 'comments', 'tags',
)
@@ -205,7 +205,7 @@ class IPSecPolicyImportForm(NetBoxModelImportForm):
class Meta:
model = IPSecPolicy
fields = (
'name', 'description', 'proposals', 'pfs_group', 'tags',
'name', 'description', 'proposals', 'pfs_group', 'comments', 'tags',
)

View File

@@ -280,7 +280,7 @@ class IKEProposalForm(NetBoxModelForm):
model = IKEProposal
fields = [
'name', 'description', 'authentication_method', 'encryption_algorithm', 'authentication_algorithm', 'group',
'sa_lifetime', 'tags',
'sa_lifetime', 'comments', 'tags',
]
@@ -298,7 +298,7 @@ class IKEPolicyForm(NetBoxModelForm):
class Meta:
model = IKEPolicy
fields = [
'name', 'description', 'version', 'mode', 'proposals', 'preshared_key', 'tags',
'name', 'description', 'version', 'mode', 'proposals', 'preshared_key', 'comments', 'tags',
]
@@ -315,7 +315,7 @@ class IPSecProposalForm(NetBoxModelForm):
model = IPSecProposal
fields = [
'name', 'description', 'encryption_algorithm', 'authentication_algorithm', 'sa_lifetime_seconds',
'sa_lifetime_data', 'tags',
'sa_lifetime_data', 'comments', 'tags',
]
@@ -333,7 +333,7 @@ class IPSecPolicyForm(NetBoxModelForm):
class Meta:
model = IPSecPolicy
fields = [
'name', 'description', 'proposals', 'pfs_group', 'tags',
'name', 'description', 'proposals', 'pfs_group', 'comments', 'tags',
]