From 9b736fe518a21e239565b599750281f815618f68 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 24 Jan 2022 21:39:50 +0100 Subject: [PATCH] switch: properly reflect the saal situation --- config/switch.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/config/switch.nix b/config/switch.nix index a9db63b..2de55e5 100644 --- a/config/switch.nix +++ b/config/switch.nix @@ -158,12 +158,22 @@ location = "Turm C Keller, bei Kabelanschluessen"; interfaces = { mgmt.type = "phys"; }; - links = { - # Saal A: durch dummen PoE-Switch mit Aggregation an ap44-50,52 + switch-a1 - switch-a1 = { + links = let + saal = { group = "1"; ports = [ "15-16" ]; }; + in { + # Saal A: durch dummen PoE-Switch mit Aggregation an ap44-50,52 + switch-a1 + switch-a1 = saal; + ap44 = saal; + ap45 = saal; + ap46 = saal; + ap47 = saal; + ap48 = saal; + ap49 = saal; + ap50 = saal; + ap52 = saal; switch-b1 = { group = "2"; ports = [ "21-24" ];