feat: switch port PDF in A4 portrait
The export uses A4 portrait: wide port groups are split evenly (a 48-port switch into 1-24 and 25-48) with larger tiles, the legend has four columns and the port list has wider columns and a smaller font so that names, status and type no longer wrap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
8eb075db9f
commit
f144f23b31
4 files changed
+13
-13
No files matched your search
@@ -509,7 +509,7 @@ recording and editing use `netbox_utilities.add_devicehardware` and
|
||||
|
||||
Devices with a role from `switch_device_roles` get an **Export switch port
|
||||
usage** button (*Switch-Belegung exportieren*) on the device page. It
|
||||
downloads a PDF (A4 landscape) with:
|
||||
downloads a PDF (A4 portrait) with:
|
||||
|
||||
- **Header:** device, site, rack/position, model and date, plus the key
|
||||
figures: physical ports, connected (with percentage), free and disabled.
|
||||
@@ -521,8 +521,8 @@ downloads a PDF (A4 landscape) with:
|
||||
as the same VLAN); connected ports are filled with the full colour and a
|
||||
thick border, free ports with a pale version, disabled ports have a dashed
|
||||
border and a small ✕. The text colour is chosen per tile for the best
|
||||
contrast (black or white). Tile widths adapt so that a 48-port switch fits
|
||||
on one row.
|
||||
contrast (black or white). Wide groups are split evenly, e.g. a 48-port
|
||||
switch into ports 1–24 and 25–48.
|
||||
- **Legend:** every VLAN with its colour and connected/total ports.
|
||||
- **Port list:** all interfaces (including virtual ones such as LAGs and SVIs)
|
||||
with status, VLAN label, peer, description, type and LAG. The peer is the
|
||||
|
||||
Reference in new issue
Block a user