ap59: deploy to switch-b2

This commit is contained in:
Astro 2022-02-05 00:33:09 +01:00
parent dd8524d251
commit 4c8de9acd4
3 changed files with 22 additions and 5 deletions

View File

@ -630,7 +630,7 @@
c3d2 = { c3d2 = {
ports = [ "lan:2" "lan:3" "lan:4" ]; ports = [ "lan:2" "lan:3" "lan:4" ];
}; };
switch-d1 = { switch-d2 = {
ports = [ "wan" ]; ports = [ "wan" ];
}; };
}; };
@ -1822,7 +1822,7 @@
priv21 = { priv21 = {
ports = [ "lan:1" "lan:2" "lan:3" "lan:4" ]; ports = [ "lan:1" "lan:2" "lan:3" "lan:4" ];
}; };
switch-d1 = { switch-d2 = {
ports = [ "wan" ]; ports = [ "wan" ];
}; };
}; };

View File

@ -237,8 +237,9 @@
group = "1"; group = "1";
ports = [ "1" ]; ports = [ "1" ];
}; };
switch-d2.ports = [ "3" ];
# Turm D APs # Turm D APs
ap3.ports = [ "3" ];
ap7.ports = [ "8" ]; ap7.ports = [ "8" ];
ap9.ports = [ "5" ]; ap9.ports = [ "5" ];
ap10.ports = [ "4" ]; ap10.ports = [ "4" ];
@ -247,6 +248,21 @@
}; };
}; };
switch-d2 = {
role = "switch";
model = "dumb";
location = "Turm D Durchgang 1. Etage";
links = {
switch-d1 = {
group = "1";
ports = [ "1" ];
};
ap3.ports = [ "1" ];
ap59.ports = [ "2" ];
};
};
switch-dach = { switch-dach = {
role = "switch"; role = "switch";
model = "HP-procurve-2824"; model = "HP-procurve-2824";

View File

@ -20,8 +20,9 @@ let
}.${role} }.${role}
) )
) ( ) (
filterAttrs (_: { role, ... }: filterAttrs (_: { role, model, ... }:
role == "ap" || role == "switch" role == "ap" ||
(role == "switch" && model != "dumb")
) config.site.hosts ) config.site.hosts
); );