feat(apro): Add vlan apro for AP flashing #89

Merged
thubrecht merged 1 commit from lbailly/infrastructure:main into main 2024-04-08 16:04:04 +02:00

View file

@ -2,6 +2,7 @@ let
vlanName = "vlan-uplink-cri"; vlanName = "vlan-uplink-cri";
vlanAdmin = "vlan-admin"; vlanAdmin = "vlan-admin";
vlanAP = "vlan-admin-ap"; vlanAP = "vlan-admin-ap";
vlanAP-apro = "vlan-apro";
linkIp = "10.120.33.250"; linkIp = "10.120.33.250";
linkPrefix = "30"; linkPrefix = "30";
@ -22,6 +23,7 @@ in
vlanName vlanName
vlanAdmin vlanAdmin
vlanAP vlanAP
vlanAP-apro
]; ];
LinkLocalAddressing = false; LinkLocalAddressing = false;
@ -51,6 +53,11 @@ in
name = vlanAP; name = vlanAP;
address = [ "fd26:baf9:d250:8010::1/60" ]; address = [ "fd26:baf9:d250:8010::1/60" ];
}; };
"10-${vlanAP-apro}" = {
name = vlanAP-apro;
address = [ "10.0.255.1/24" ];
networkConfig.DHCPServer = "yes";
};
}; };
netdevs = { netdevs = {
"10-${vlanName}" = { "10-${vlanName}" = {
@ -80,6 +87,16 @@ in
Id = 3001; Id = 3001;
}; };
}; };
"10-${vlanAP-apro}" = {
netdevConfig = {
Name = vlanAP-apro;
Kind = "vlan";
};
vlanConfig = {
Id = 2000;
}; };
}; };
};
};
networking.firewall.allowedUDPPorts = [ 67 ];
} }