diff --git a/nix/pkgs/switch-report.nix b/nix/pkgs/switch-report.nix index 04ac2fe..61e577e 100644 --- a/nix/pkgs/switch-report.nix +++ b/nix/pkgs/switch-report.nix @@ -28,21 +28,20 @@ let `${model}` @ **${location}** - |Name|Ports|Group|Trunk|Networks| - |-:|-:|:-:|:-:|:-| + |Name|Ports|Trunk|Networks| + |-:|-:|:-:|:-| ${lib.concatMapStrings (ports: let linkName = linksByPorts.${ports}; link = links.${linkName}; in '' - |**${ + |${ + lib.optionalString (link.group != null) + "Group ${toString link.group}: " + }**${ linkName }**|${ ports - }|${ - lib.optionalString (link.group != null) ( - toString link.group - ) }|${ lib.optionalString link.trunk "✓" }|${