diff options
author | Arne Sund <arnels@stortinget.samfundet.no> | 2015-03-18 20:24:06 +0100 |
---|---|---|
committer | Arne Sund <arnels@stortinget.samfundet.no> | 2015-03-18 20:24:06 +0100 |
commit | ecd17a782e1d54307c74a812b42f3141cd636c97 (patch) | |
tree | c3ebab42bdb00db65e133dccc4e3197571347aca | |
parent | e67e8ca7b284c0dc48f93a91ac9eda4268616aaf (diff) |
Minor changes to the format
-rw-r--r-- | planning/planning.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/planning/planning.cpp b/planning/planning.cpp index 215ae7f..e6c14a5 100644 --- a/planning/planning.cpp +++ b/planning/planning.cpp @@ -734,8 +734,8 @@ int Planner::do_work(int distro_placements[NUM_DISTRO]) fprintf(switchlist, "e%u-%u %s/%u %s%u%c::/64 ",switches[i].row * 2 - 1, switches[i].num + 1, inet_ntoa(subnet_addr4), SUBNET_SIZE, IPV6_PREFIX, third_oct, fourth); - fprintf(switchlist, "%s %s%04u:%04u::/64 1%02u%u %s\n", - inet_ntoa(mgmt_ip4), IPV6_PREFIX, third_oct_mgmt, fourth_oct_mgmt, + fprintf(switchlist, "%s/26 %s%u:%u::%u/64 1%02u%u %s\n", + inet_ntoa(mgmt_ip4), IPV6_PREFIX, third_oct_mgmt, (fourth_oct_mgmt / 64) * 64, 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 - SUBNET_SIZE))); |