| 125 | } |
| 126 | |
| 127 | static string serialize_zone_assignments(const ZoneAssignments & data) { |
| 128 | vector<string> elems; |
| 129 | for (auto elem : data) { |
| 130 | vector<int32_t> ints = {elem.first, elem.second.first, elem.second.second}; |
| 131 | elems.push_back(join_strings("/", ints)); |
| 132 | } |
| 133 | return join_strings(",", elems); |
| 134 | } |
| 135 | |
| 136 | static void store_zone_assignments(const ZoneAssignments & data, const char * suffix) { |
| 137 | get_config(suffix, true).set_str(serialize_zone_assignments(data)); |
no test coverage detected