feat(vault01): Add admin vlan

This commit is contained in:
catvayor 2024-04-05 14:33:56 +02:00 committed by thubrecht
parent a64f5dac9e
commit 2e3bb99b84

View file

@ -1,5 +1,6 @@
let
vlanName = "vlan-uplink-cri";
vlanAdmin = "vlan-admin";
linkIp = "10.120.33.250";
linkPrefix = "30";
@ -16,7 +17,10 @@ in
"10-enp67s0f0np0" = {
name = "enp67s0f0np0";
networkConfig = {
VLAN = [ vlanName ];
VLAN = [
vlanName
vlanAdmin
];
LinkLocalAddressing = false;
LLDP = false;
@ -37,9 +41,13 @@ in
}
];
};
"10-${vlanAdmin}" = {
name = vlanAdmin;
address = [ "10.0.0.1/16" ];
};
};
netdevs = {
"10-vlan-uplink-cri" = {
"10-${vlanName}" = {
netdevConfig = {
Name = vlanName;
Kind = "vlan";
@ -48,6 +56,15 @@ in
Id = 223;
};
};
"10-${vlanAdmin}" = {
netdevConfig = {
Name = vlanAdmin;
Kind = "vlan";
};
vlanConfig = {
Id = 3000;
};
};
};
};
}