aboutsummaryrefslogtreecommitdiffstats
path: root/planning/planning.cpp
diff options
context:
space:
mode:
authorSjur Fredriksen <sjurtf@ifi.uio.no>2023-03-24 21:49:55 +0100
committerSjur Fredriksen <sjurtf@ifi.uio.no>2023-03-24 21:49:55 +0100
commit27e6e09e69b7d054acecfd244d59d4f8df887214 (patch)
tree922641e03707e98d193fb24cc3c8c1aa36a562c3 /planning/planning.cpp
parentf2e00c915942d7393d1ed8a651a3a301b594b199 (diff)
tg23 ipam
Diffstat (limited to 'planning/planning.cpp')
-rw-r--r--planning/planning.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/planning/planning.cpp b/planning/planning.cpp
index e809359..94f83cc 100644
--- a/planning/planning.cpp
+++ b/planning/planning.cpp
@@ -51,7 +51,6 @@
#define FIRST_SUBNET_ADDRESS "88.92.0.0"
#define FIRST_MGMT_ADDRESS "151.216.130.0"
#define SUBNET_SIZE 26
-#define MGMT_SUBNET_SIZE 24
#define IPV6_PREFIX "2a06:5844:e:"
#define IPV6_MGMT_PREFIX "2a06:5841:f:10:"
@@ -723,7 +722,7 @@ int Planner::do_work(int distro_placements[NUM_DISTRO])
inet_ntoa(mgmt_ip4), IPV6_MGMT_PREFIX, distro + 1, fourth_oct_mgmt,
switches[i].row * 2 - 1, switches[i].num + 1, distro_name(distro).c_str());
- subnet_address = htonl(ntohl(subnet_address) + (1ULL << (32 - MGMT_SUBNET_SIZE)));
+ subnet_address = htonl(ntohl(subnet_address) + (1ULL << (32 - SUBNET_SIZE)));
}
fclose(patchlist);
fclose(switchlist);