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