Skip to content

Commit 1a410bb

Browse files
nix.routers.{border,expo}: move to .4 to its scheme makes sense
The 3rd octet in the ipv4 subnet should match the last digit of the vlan(at least thats what we try to do for consistency when possible)
1 parent 1195193 commit 1a410bb

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

nix/nixos-modules/routers/border.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ in
169169
matchConfig.Name = "bridge104";
170170
networkConfig.DHCP = false;
171171
address = [
172-
"172.20.2.1/24"
172+
"172.20.4.1/24"
173173
"2001:470:f026:104::1/64"
174174
];
175175
};

nix/nixos-modules/routers/expo.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,11 @@ in
322322
enable = true;
323323
networkConfig.DHCP = false;
324324
address = [
325-
"172.20.2.3/24"
325+
"172.20.4.3/24"
326326
"2001:470:f026:104::3/64"
327327
];
328328
routes = [
329-
{ Gateway = "172.20.2.1"; }
329+
{ Gateway = "172.20.4.1"; }
330330
];
331331
};
332332
"40-vlan105" = {
@@ -391,7 +391,7 @@ in
391391

392392
scale-network = {
393393
services.frr.enable = true;
394-
services.frr.router-id = "172.20.2.3";
394+
services.frr.router-id = "172.20.4.3";
395395
services.frr.broadcast-interface = [
396396
"bridge104" # border
397397
"bridge903" # conf

nix/package-sets/scale-nixos-tests/routers.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
# border can ping both routers
143143
border.succeed("ping -c 5 172.20.1.2")
144144
border.succeed("ping -c 5 2001:470:f026:901::2")
145-
border.succeed("ping -c 5 172.20.2.3")
145+
border.succeed("ping -c 5 172.20.4.3")
146146
border.succeed("ping -c 5 2001:470:f026:104::3")
147147
148148
# conference can ping both routers
@@ -152,7 +152,7 @@
152152
conference.succeed("ping -c 5 2001:470:f026:903::3")
153153
154154
# expo can ping both routers
155-
expo.succeed("ping -c 5 172.20.2.1")
155+
expo.succeed("ping -c 5 172.20.4.1")
156156
expo.succeed("ping -c 5 2001:470:f026:104::1")
157157
expo.succeed("ping -c 5 172.20.3.2")
158158
expo.succeed("ping -c 5 2001:470:f026:903::2")
@@ -171,9 +171,9 @@
171171
border.wait_until_succeeds("ping -c 5 2001:470:f026:903::3", timeout=60)
172172
173173
# conference can reach border-expo link
174-
conference.wait_until_succeeds("ping -c 5 172.20.2.1", timeout=60)
174+
conference.wait_until_succeeds("ping -c 5 172.20.4.1", timeout=60)
175175
conference.wait_until_succeeds("ping -c 5 2001:470:f026:104::1", timeout=60)
176-
conference.wait_until_succeeds("ping -c 5 172.20.2.3", timeout=60)
176+
conference.wait_until_succeeds("ping -c 5 172.20.4.3", timeout=60)
177177
conference.wait_until_succeeds("ping -c 5 2001:470:f026:104::3", timeout=60)
178178
179179
# expo can reach conference-border link

0 commit comments

Comments
 (0)