Skip to content

Commit 72ef307

Browse files
committed
feat(form): Adding new Destinations to the ACLExtendedRule creation form
1 parent 1179ccd commit 72ef307

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

netbox_acls/forms/models.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,31 @@ class ACLExtendedRuleForm(NetBoxModelForm):
633633
help_text=help_text_acl_rule_logic,
634634
label="Destination Prefix",
635635
)
636+
destination_iprange = DynamicModelChoiceField(
637+
queryset=IPRange.objects.all(),
638+
required=False,
639+
help_text=help_text_acl_rule_logic,
640+
label="Destination IP-Range",
641+
)
642+
destination_ipaddress = DynamicModelChoiceField(
643+
queryset=IPAddress.objects.all(),
644+
required=False,
645+
help_text=help_text_acl_rule_logic,
646+
label="Destination IP-Address",
647+
)
648+
destination_aggregate = DynamicModelChoiceField(
649+
queryset=Aggregate.objects.all(),
650+
required=False,
651+
help_text=help_text_acl_rule_logic,
652+
label="Destination Aggregate",
653+
)
654+
destination_service = DynamicModelChoiceField(
655+
queryset=Service.objects.all(),
656+
required=False,
657+
help_text=help_text_acl_rule_logic,
658+
label="Destination Service",
659+
)
660+
636661
fieldsets = (
637662
FieldSet(
638663
"access_list",
@@ -675,6 +700,10 @@ class Meta:
675700
"source_service",
676701

677702
"destination_prefix",
703+
"destination_iprange",
704+
"destination_ipaddress",
705+
"destination_aggregate",
706+
"destination_service",
678707

679708
"source_ports",
680709
"destination_ports",

0 commit comments

Comments
 (0)