Skip to content

Commit 5c27d29

Browse files
Adds unit to the power port draw (#14208)
* adds unit to the power port draw #13587 * review changes #13587 * moved units to header #13587 * Abbreviate unit for consistency with e.g. PowerFeedTable available_power column --------- Co-authored-by: Jeremy Stretch <[email protected]>
1 parent e1bedb8 commit 5c27d29

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

netbox/dcim/tables/devices.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,12 @@ class PowerPortTable(ModularDeviceComponentTable, PathEndpointTable):
466466
'args': [Accessor('device_id')],
467467
}
468468
)
469+
maximum_draw = tables.Column(
470+
verbose_name=_('Maximum draw (W)')
471+
)
472+
allocated_draw = tables.Column(
473+
verbose_name=_('Allocated draw (W)')
474+
)
469475
tags = columns.TagColumn(
470476
url_name='dcim:powerport_list'
471477
)

0 commit comments

Comments
 (0)