forked from zentralwerk/network
pkgs/switch-report: eliminate group column
This commit is contained in:
parent
b54f6d431c
commit
271ad5c7ce
|
@ -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 "✓"
|
||||
}|${
|
||||
|
|
Loading…
Reference in New Issue