55a09d1579
Only allow the admin-core for now. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
145 lines
3.2 KiB
Nix
145 lines
3.2 KiB
Nix
let
|
|
vlansPlan = {
|
|
"uplink-cri".id = 223;
|
|
|
|
"admin-core" = {
|
|
id = 3000;
|
|
l3-interface = "irb.0";
|
|
};
|
|
"admin-ap".id = 3001;
|
|
"users".id-list = [
|
|
{
|
|
begin = 3045;
|
|
end = 4094;
|
|
}
|
|
];
|
|
|
|
"ap-staging".id = 2000;
|
|
};
|
|
AP = {
|
|
poe = true;
|
|
ethernet-switching = {
|
|
interface-mode = "trunk";
|
|
vlans = [
|
|
"users"
|
|
"admin-ap"
|
|
];
|
|
};
|
|
};
|
|
AP-staging = {
|
|
poe = true;
|
|
ethernet-switching = {
|
|
interface-mode = "access";
|
|
vlans = [ "ap-staging" ];
|
|
};
|
|
};
|
|
in
|
|
{
|
|
netcore02 = {
|
|
deployment.targetHost = "netcore02.dgn";
|
|
imports = [ ./ex2300.nix ];
|
|
vlans = vlansPlan;
|
|
dgn-interfaces = {
|
|
# "ge-0/0/0" = AP-staging;
|
|
# "ge-0/0/1" = AP-staging;
|
|
# "ge-0/0/2" = AP-staging;
|
|
# "ge-0/0/3" = AP-staging;
|
|
"ge-0/0/4" = AP-staging;
|
|
# "ge-0/0/5" = AP-staging;
|
|
# "ge-0/0/6" = AP-staging;
|
|
# "ge-0/0/7" = AP-staging;
|
|
# "ge-0/0/8" = AP-staging;
|
|
# "ge-0/0/9" = AP-staging;
|
|
# "ge-0/0/10" = AP-staging;
|
|
# "ge-0/0/11" = AP-staging;
|
|
# "ge-0/0/12" = AP-staging;
|
|
# "ge-0/0/13" = AP-staging;
|
|
# "ge-0/0/14" = AP-staging;
|
|
# "ge-0/0/15" = AP-staging;
|
|
# "ge-0/0/16" = AP-staging;
|
|
# "ge-0/0/17" = AP-staging;
|
|
|
|
# oob
|
|
"ge-0/0/42".ethernet-switching = {
|
|
interface-mode = "trunk";
|
|
vlans = [ "all" ];
|
|
};
|
|
# AP de test
|
|
"ge-0/0/43" = {
|
|
poe = true;
|
|
ethernet-switching = {
|
|
interface-mode = "access";
|
|
vlans = [ 4000 ];
|
|
};
|
|
};
|
|
# uplink oob
|
|
"ge-0/0/46".ethernet-switching = {
|
|
interface-mode = "access";
|
|
vlans = [ 222 ];
|
|
rstp = false;
|
|
};
|
|
# ilo
|
|
"ge-0/0/47".ethernet-switching = {
|
|
interface-mode = "access";
|
|
vlans = [ "admin-core" ];
|
|
};
|
|
|
|
# router
|
|
"xe-0/1/0".ethernet-switching = {
|
|
interface-mode = "trunk";
|
|
vlans = [ "all" ];
|
|
};
|
|
# netaccess01
|
|
"xe-0/1/1".ethernet-switching = {
|
|
interface-mode = "trunk";
|
|
vlans = [
|
|
"users"
|
|
"ap-staging"
|
|
"admin-ap"
|
|
"admin-core"
|
|
];
|
|
};
|
|
# netcore01 (Potos)
|
|
"xe-0/1/2".ethernet-switching = {
|
|
interface-mode = "trunk";
|
|
vlans = [
|
|
"admin-core"
|
|
];
|
|
};
|
|
# uplink
|
|
"ge-0/1/3".ethernet-switching = {
|
|
interface-mode = "trunk";
|
|
vlans = [ "uplink-cri" ];
|
|
};
|
|
|
|
# management
|
|
"me0".inet.addresses = [ "192.168.42.6/24" ];
|
|
"irb".inet6.addresses = [ "fd26:baf9:d250:8000::1001/64" ];
|
|
};
|
|
};
|
|
netaccess01 = {
|
|
deployment.targetHost = "netaccess01.dgn";
|
|
|
|
imports = [ ./ex2300.nix ];
|
|
vlans = vlansPlan;
|
|
|
|
dgn-interfaces = {
|
|
# "ge-0/0/0" = AP-staging;
|
|
# "ge-0/0/1" = AP-staging;
|
|
# "ge-0/0/2" = AP-staging;
|
|
# "ge-0/0/3" = AP-staging;
|
|
# "ge-0/0/4" = AP-staging;
|
|
# "ge-0/0/5" = AP-staging;
|
|
|
|
# netcore02
|
|
"xe-0/1/0".ethernet-switching = {
|
|
interface-mode = "trunk";
|
|
vlans = [ "all" ];
|
|
};
|
|
|
|
# management
|
|
"me0".inet.addresses = [ "192.168.42.6/24" ];
|
|
"irb".inet6.addresses = [ "fd26:baf9:d250:8000::2001/64" ];
|
|
};
|
|
};
|
|
}
|