Skip to content

Commit 11912b5

Browse files
committed
feat(view): Adding new Destination Fields to the Views of ACLExtendedRule
1 parent 2b4a237 commit 11912b5

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

netbox_acls/views.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ def get_extra_addanother_params(self, request):
374374
"access_list": request.GET.get("access_list") or request.POST.get("access_list"),
375375
}
376376

377-
378377
@register_model_view(models.ACLStandardRule, "delete")
379378
class ACLStandardRuleDeleteView(generic.ObjectDeleteView):
380379
"""
@@ -426,6 +425,10 @@ class ACLExtendedRuleView(generic.ObjectView):
426425
"source_aggregate",
427426
"source_service",
428427
"destination_prefix",
428+
"destination_iprange",
429+
"destination_ipaddress",
430+
"destination_aggregate",
431+
"destination_service"
429432
)
430433

431434

@@ -443,6 +446,10 @@ class ACLExtendedRuleListView(generic.ObjectListView):
443446
"source_aggregate",
444447
"source_service",
445448
"destination_prefix",
449+
"destination_iprange",
450+
"destination_ipaddress",
451+
"destination_aggregate",
452+
"destination_service"
446453
)
447454
table = tables.ACLExtendedRuleTable
448455
filterset = filtersets.ACLExtendedRuleFilterSet
@@ -464,6 +471,10 @@ class ACLExtendedRuleEditView(generic.ObjectEditView):
464471
"source_aggregate",
465472
"source_service",
466473
"destination_prefix",
474+
"destination_iprange",
475+
"destination_ipaddress",
476+
"destination_aggregate",
477+
"destination_service"
467478
)
468479
form = forms.ACLExtendedRuleForm
469480

@@ -492,6 +503,10 @@ class ACLExtendedRuleDeleteView(generic.ObjectDeleteView):
492503
"source_aggregate",
493504
"source_service",
494505
"destination_prefix",
506+
"destination_iprange",
507+
"destination_ipaddress",
508+
"destination_aggregate",
509+
"destination_service"
495510
)
496511

497512

@@ -505,6 +520,10 @@ class ACLExtendedRuleBulkDeleteView(generic.BulkDeleteView):
505520
"source_aggregate",
506521
"source_service",
507522
"destination_prefix",
523+
"destination_iprange",
524+
"destination_ipaddress",
525+
"destination_aggregate",
526+
"destination_service"
508527
)
509528
filterset = filtersets.ACLExtendedRuleFilterSet
510529
table = tables.ACLExtendedRuleTable

0 commit comments

Comments
 (0)