pkgs/switch-report: eliminate group column

This commit is contained in:
Astro 2022-10-23 23:03:04 +02:00
parent b54f6d431c
commit 271ad5c7ce
1 changed files with 6 additions and 7 deletions

View File

@ -28,21 +28,20 @@ let
`${model}` @ **${location}** `${model}` @ **${location}**
|Name|Ports|Group|Trunk|Networks| |Name|Ports|Trunk|Networks|
|-:|-:|:-:|:-:|:-| |-:|-:|:-:|:-|
${lib.concatMapStrings (ports: ${lib.concatMapStrings (ports:
let let
linkName = linksByPorts.${ports}; linkName = linksByPorts.${ports};
link = links.${linkName}; link = links.${linkName};
in '' in ''
|**${ |${
lib.optionalString (link.group != null)
"Group ${toString link.group}: "
}**${
linkName linkName
}**|${ }**|${
ports ports
}|${
lib.optionalString (link.group != null) (
toString link.group
)
}|${ }|${
lib.optionalString link.trunk "" lib.optionalString link.trunk ""
}|${ }|${