Skip to content

Commit 5c0f39f

Browse files
committed
feat(table): ACLExtendedRule: Changing Destination Prefix to a single Destination column that will display any Destination
1 parent 91431da commit 5c0f39f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

netbox_acls/tables.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ class ACLExtendedRuleTable(NetBoxTable):
205205
template_code=COL_SOURCE_AND_DESTINATION_ASSIGNMENT.replace('#replaceme#', 'source'),
206206
order_by=('source_prefix', 'source_iprange', 'source_ipaddress', 'source_aggregate', 'source_service')
207207
)
208+
destination = tables.TemplateColumn(
209+
template_code=COL_SOURCE_AND_DESTINATION_ASSIGNMENT.replace('#replaceme#', 'destination'),
210+
order_by=('destination_prefix', 'destination_iprange', 'destination_ipaddress', 'destination_aggregate', 'destination_service')
211+
)
208212
protocol = ChoiceFieldColumn()
209213

210214
class Meta(NetBoxTable.Meta):
@@ -220,7 +224,7 @@ class Meta(NetBoxTable.Meta):
220224
"description",
221225
"source",
222226
"source_ports",
223-
"destination_prefix",
227+
"destination",
224228
"destination_ports",
225229
"protocol",
226230
)
@@ -232,7 +236,7 @@ class Meta(NetBoxTable.Meta):
232236
"tags",
233237
"source",
234238
"source_ports",
235-
"destination_prefix",
239+
"destination",
236240
"destination_ports",
237241
"protocol",
238242
)

0 commit comments

Comments
 (0)