Skip to content

Commit 3651f41

Browse files
committed
feat(form): Adding new Destinations to the ACLExtendedRule creation form
1 parent 06bfee3 commit 3651f41

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
@@ -616,6 +616,31 @@ class ACLExtendedRuleForm(NetBoxModelForm):
616616
help_text=help_text_acl_rule_logic,
617617
label="Destination Prefix",
618618
)
619+
destination_iprange = DynamicModelChoiceField(
620+
queryset=IPRange.objects.all(),
621+
required=False,
622+
help_text=help_text_acl_rule_logic,
623+
label="Destination IP-Range",
624+
)
625+
destination_ipaddress = DynamicModelChoiceField(
626+
queryset=IPAddress.objects.all(),
627+
required=False,
628+
help_text=help_text_acl_rule_logic,
629+
label="Destination IP-Address",
630+
)
631+
destination_aggregate = DynamicModelChoiceField(
632+
queryset=Aggregate.objects.all(),
633+
required=False,
634+
help_text=help_text_acl_rule_logic,
635+
label="Destination Aggregate",
636+
)
637+
destination_service = DynamicModelChoiceField(
638+
queryset=Service.objects.all(),
639+
required=False,
640+
help_text=help_text_acl_rule_logic,
641+
label="Destination Service",
642+
)
643+
619644
fieldsets = (
620645
FieldSet(
621646
"access_list",
@@ -659,6 +684,10 @@ class Meta:
659684
"source_service",
660685

661686
"destination_prefix",
687+
"destination_iprange",
688+
"destination_ipaddress",
689+
"destination_aggregate",
690+
"destination_service",
662691

663692
"source_ports",
664693
"destination_ports",

0 commit comments

Comments
 (0)