blob: e6134941a3f3522cefd17b0a709de21413e20b90 [file] [log] [blame]
James Feist6714a252018-09-10 15:26:18 -07001/*
2// Copyright (c) 2017 Intel Corporation
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15*/
16
Ed Tanous8a57ec02020-10-09 12:46:52 -070017#include <PwmSensor.hpp>
18#include <TachSensor.hpp>
19#include <Utils.hpp>
20#include <VariantVisitors.hpp>
James Feist6714a252018-09-10 15:26:18 -070021#include <boost/algorithm/string/predicate.hpp>
22#include <boost/algorithm/string/replace.hpp>
Patrick Venture96e97db2019-10-31 13:44:38 -070023#include <boost/container/flat_map.hpp>
James Feist6714a252018-09-10 15:26:18 -070024#include <boost/container/flat_set.hpp>
25#include <boost/lexical_cast.hpp>
James Feist38fb5982020-05-28 10:09:54 -070026#include <sdbusplus/asio/connection.hpp>
27#include <sdbusplus/asio/object_server.hpp>
28#include <sdbusplus/bus/match.hpp>
29
30#include <array>
James Feist24f02f22019-04-15 11:05:39 -070031#include <filesystem>
James Feist6714a252018-09-10 15:26:18 -070032#include <fstream>
Patrick Venture96e97db2019-10-31 13:44:38 -070033#include <functional>
34#include <memory>
35#include <optional>
James Feist6714a252018-09-10 15:26:18 -070036#include <regex>
Patrick Venture96e97db2019-10-31 13:44:38 -070037#include <string>
38#include <utility>
39#include <variant>
40#include <vector>
James Feist6714a252018-09-10 15:26:18 -070041
Ed Tanous8a57ec02020-10-09 12:46:52 -070042static constexpr bool debug = false;
James Feist6714a252018-09-10 15:26:18 -070043
James Feistcf3bce62019-01-08 10:07:19 -080044namespace fs = std::filesystem;
James Feist3eb82622019-02-08 13:10:22 -080045
Yong Zhaoa3e8f2a2021-01-09 02:22:43 +000046// The following two structures need to be consistent
Peter Lundgren8843b622019-09-12 10:33:41 -070047static constexpr std::array<const char*, 3> sensorTypes = {
James Feist95b079b2018-11-21 09:28:00 -080048 "xyz.openbmc_project.Configuration.AspeedFan",
Peter Lundgren8843b622019-09-12 10:33:41 -070049 "xyz.openbmc_project.Configuration.I2CFan",
50 "xyz.openbmc_project.Configuration.NuvotonFan"};
Yong Zhaoa3e8f2a2021-01-09 02:22:43 +000051
52enum FanTypes
53{
54 aspeed = 0,
55 i2c,
56 nuvoton,
57 max,
58};
59
60static_assert(std::tuple_size<decltype(sensorTypes)>::value == FanTypes::max,
61 "sensorTypes element number is not equal to FanTypes number");
62
James Feistdc6c55f2018-10-31 12:53:20 -070063constexpr const char* redundancyConfiguration =
64 "xyz.openbmc_project.Configuration.FanRedundancy";
Jae Hyun Yoo9ced0a32018-10-25 10:42:39 -070065static std::regex inputRegex(R"(fan(\d+)_input)");
James Feist6714a252018-09-10 15:26:18 -070066
James Feistdc6c55f2018-10-31 12:53:20 -070067// todo: power supply fan redundancy
James Feist7b18b1e2019-05-14 13:42:09 -070068std::optional<RedundancySensor> systemRedundancy;
James Feist95b079b2018-11-21 09:28:00 -080069
70FanTypes getFanType(const fs::path& parentPath)
71{
72 fs::path linkPath = parentPath / "device";
73 std::string canonical = fs::read_symlink(linkPath);
Jae Hyun Yoo241356e2020-02-20 12:48:04 -080074 if (boost::ends_with(canonical, "1e786000.pwm-tacho-controller") ||
75 boost::ends_with(canonical, "1e610000.pwm-tacho-controller"))
James Feist95b079b2018-11-21 09:28:00 -080076 {
77 return FanTypes::aspeed;
78 }
Ed Tanous8a57ec02020-10-09 12:46:52 -070079 if (boost::ends_with(canonical, "f0103000.pwm-fan-controller"))
Peter Lundgren8843b622019-09-12 10:33:41 -070080 {
81 return FanTypes::nuvoton;
82 }
James Feist95b079b2018-11-21 09:28:00 -080083 // todo: will we need to support other types?
84 return FanTypes::i2c;
85}
Jeff Linabf91de2020-12-23 10:55:42 +080086void enablePwm(const fs::path& filePath)
87{
88 std::fstream enableFile(filePath, std::ios::in | std::ios::out);
89 if (!enableFile.good())
90 {
91 std::cerr << "Error read/write " << filePath << "\n";
92 return;
93 }
James Feistdc6c55f2018-10-31 12:53:20 -070094
Jeff Linabf91de2020-12-23 10:55:42 +080095 std::string regulateMode;
96 std::getline(enableFile, regulateMode);
97 if (regulateMode == "0")
98 {
99 enableFile << 1;
100 }
101}
Kuiying Wangd5407412020-09-09 16:06:56 +0800102void createRedundancySensor(
103 const boost::container::flat_map<std::string, std::unique_ptr<TachSensor>>&
104 sensors,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700105 const std::shared_ptr<sdbusplus::asio::connection>& conn,
Kuiying Wangd5407412020-09-09 16:06:56 +0800106 sdbusplus::asio::object_server& objectServer)
107{
108
109 conn->async_method_call(
110 [&objectServer, &sensors](boost::system::error_code& ec,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700111 const ManagedObjectType& managedObj) {
Kuiying Wangd5407412020-09-09 16:06:56 +0800112 if (ec)
113 {
114 std::cerr << "Error calling entity manager \n";
115 return;
116 }
117 for (const auto& pathPair : managedObj)
118 {
119 for (const auto& interfacePair : pathPair.second)
120 {
121 if (interfacePair.first == redundancyConfiguration)
122 {
123 // currently only support one
124 auto findCount =
125 interfacePair.second.find("AllowedFailures");
126 if (findCount == interfacePair.second.end())
127 {
128 std::cerr << "Malformed redundancy record \n";
129 return;
130 }
131 std::vector<std::string> sensorList;
132
133 for (const auto& sensor : sensors)
134 {
135 sensorList.push_back(
136 "/xyz/openbmc_project/sensors/fan_tach/" +
137 sensor.second->name);
138 }
139 systemRedundancy.reset();
140 systemRedundancy.emplace(RedundancySensor(
141 std::get<uint64_t>(findCount->second), sensorList,
142 objectServer, pathPair.first));
143
144 return;
145 }
146 }
147 }
148 },
149 "xyz.openbmc_project.EntityManager", "/",
150 "org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
151}
152
James Feist6714a252018-09-10 15:26:18 -0700153void createSensors(
154 boost::asio::io_service& io, sdbusplus::asio::object_server& objectServer,
155 boost::container::flat_map<std::string, std::unique_ptr<TachSensor>>&
156 tachSensors,
157 boost::container::flat_map<std::string, std::unique_ptr<PwmSensor>>&
158 pwmSensors,
159 std::shared_ptr<sdbusplus::asio::connection>& dbusConnection,
James Feist5591cf082020-07-15 16:44:54 -0700160 const std::shared_ptr<boost::container::flat_set<std::string>>&
James Feistf27a55c2020-08-04 14:27:30 -0700161 sensorsChanged,
162 size_t retries = 0)
James Feist6714a252018-09-10 15:26:18 -0700163{
James Feistde5e9702019-09-18 16:13:02 -0700164 auto getter = std::make_shared<GetSensorConfiguration>(
165 dbusConnection,
166 std::move([&io, &objectServer, &tachSensors, &pwmSensors,
James Feist5591cf082020-07-15 16:44:54 -0700167 &dbusConnection, sensorsChanged](
James Feistde5e9702019-09-18 16:13:02 -0700168 const ManagedObjectType& sensorConfigurations) {
169 bool firstScan = sensorsChanged == nullptr;
170 std::vector<fs::path> paths;
171 if (!findFiles(fs::path("/sys/class/hwmon"), R"(fan\d+_input)",
172 paths))
James Feist95b079b2018-11-21 09:28:00 -0800173 {
Yong Zhao77b3add2021-01-09 04:25:18 +0000174 std::cerr << "No fan sensors in system\n";
James Feistde5e9702019-09-18 16:13:02 -0700175 return;
James Feist95b079b2018-11-21 09:28:00 -0800176 }
James Feist6714a252018-09-10 15:26:18 -0700177
James Feistde5e9702019-09-18 16:13:02 -0700178 // iterate through all found fan sensors, and try to match them with
179 // configuration
180 for (const auto& path : paths)
James Feist6714a252018-09-10 15:26:18 -0700181 {
James Feistde5e9702019-09-18 16:13:02 -0700182 std::smatch match;
183 std::string pathStr = path.string();
184
185 std::regex_search(pathStr, match, inputRegex);
186 std::string indexStr = *(match.begin() + 1);
187
Yong Zhao77b3add2021-01-09 04:25:18 +0000188 fs::path directory = path.parent_path();
James Feistde5e9702019-09-18 16:13:02 -0700189 FanTypes fanType = getFanType(directory);
Yong Zhao77b3add2021-01-09 04:25:18 +0000190
James Feistde5e9702019-09-18 16:13:02 -0700191 // convert to 0 based
192 size_t index = std::stoul(indexStr) - 1;
193
194 const char* baseType;
195 const SensorData* sensorData = nullptr;
196 const std::string* interfacePath = nullptr;
197 const SensorBaseConfiguration* baseConfiguration = nullptr;
198 for (const std::pair<sdbusplus::message::object_path,
199 SensorData>& sensor : sensorConfigurations)
James Feist95b079b2018-11-21 09:28:00 -0800200 {
James Feistde5e9702019-09-18 16:13:02 -0700201 // find the base of the configuration to see if indexes
202 // match
Yong Zhaoa3e8f2a2021-01-09 02:22:43 +0000203 auto sensorBaseFind =
204 sensor.second.find(sensorTypes[fanType]);
205 if (sensorBaseFind == sensor.second.end())
James Feistde5e9702019-09-18 16:13:02 -0700206 {
207 continue;
208 }
Zhikui Ren347dd4e2019-12-12 13:39:50 -0800209
Yong Zhaoa3e8f2a2021-01-09 02:22:43 +0000210 baseConfiguration = &(*sensorBaseFind);
211 interfacePath = &(sensor.first.str);
212 baseType = sensorTypes[fanType];
213
James Feistde5e9702019-09-18 16:13:02 -0700214 auto findIndex = baseConfiguration->second.find("Index");
215 if (findIndex == baseConfiguration->second.end())
216 {
217 std::cerr << baseConfiguration->first
218 << " missing index\n";
219 continue;
220 }
221 unsigned int configIndex = std::visit(
222 VariantToUnsignedIntVisitor(), findIndex->second);
223 if (configIndex != index)
224 {
225 continue;
226 }
227 if (fanType == FanTypes::aspeed ||
228 fanType == FanTypes::nuvoton)
229 {
230 // there will be only 1 aspeed or nuvoton sensor object
231 // in sysfs, we found the fan
232 sensorData = &(sensor.second);
233 break;
234 }
Ed Tanous8a57ec02020-10-09 12:46:52 -0700235 if (fanType == FanTypes::i2c)
James Feistde5e9702019-09-18 16:13:02 -0700236 {
Yong Zhaoadd46822021-01-09 04:52:36 +0000237 size_t bus = 0;
238 size_t address = 0;
239
240 std::string link =
241 fs::read_symlink(directory / "device").filename();
242
243 size_t findDash = link.find('-');
244 if (findDash == std::string::npos ||
245 link.size() <= findDash + 1)
246 {
247 std::cerr << "Error finding device from symlink";
248 }
249 bus = std::stoi(link.substr(0, findDash));
250 address =
251 std::stoi(link.substr(findDash + 1), nullptr, 16);
252
James Feistde5e9702019-09-18 16:13:02 -0700253 auto findBus = baseConfiguration->second.find("Bus");
254 auto findAddress =
255 baseConfiguration->second.find("Address");
256 if (findBus == baseConfiguration->second.end() ||
257 findAddress == baseConfiguration->second.end())
258 {
259 std::cerr << baseConfiguration->first
260 << " missing bus or address\n";
261 continue;
262 }
263 unsigned int configBus = std::visit(
264 VariantToUnsignedIntVisitor(), findBus->second);
265 unsigned int configAddress = std::visit(
266 VariantToUnsignedIntVisitor(), findAddress->second);
267
268 if (configBus == bus && configAddress == address)
269 {
270 sensorData = &(sensor.second);
271 break;
272 }
273 }
274 }
275 if (sensorData == nullptr)
276 {
277 std::cerr << "failed to find match for " << path.string()
278 << "\n";
James Feist95b079b2018-11-21 09:28:00 -0800279 continue;
280 }
James Feist95b079b2018-11-21 09:28:00 -0800281
James Feistde5e9702019-09-18 16:13:02 -0700282 auto findSensorName = baseConfiguration->second.find("Name");
Zhikui Ren347dd4e2019-12-12 13:39:50 -0800283
James Feistde5e9702019-09-18 16:13:02 -0700284 if (findSensorName == baseConfiguration->second.end())
James Feist95b079b2018-11-21 09:28:00 -0800285 {
James Feistde5e9702019-09-18 16:13:02 -0700286 std::cerr << "could not determine configuration name for "
287 << path.string() << "\n";
288 continue;
289 }
290 std::string sensorName =
291 std::get<std::string>(findSensorName->second);
Zhikui Ren347dd4e2019-12-12 13:39:50 -0800292
James Feistde5e9702019-09-18 16:13:02 -0700293 // on rescans, only update sensors we were signaled by
294 auto findSensor = tachSensors.find(sensorName);
295 if (!firstScan && findSensor != tachSensors.end())
296 {
297 bool found = false;
298 for (auto it = sensorsChanged->begin();
299 it != sensorsChanged->end(); it++)
300 {
301 if (boost::ends_with(*it, findSensor->second->name))
302 {
303 sensorsChanged->erase(it);
304 findSensor->second = nullptr;
305 found = true;
306 break;
307 }
308 }
309 if (!found)
310 {
311 continue;
312 }
313 }
314 std::vector<thresholds::Threshold> sensorThresholds;
315 if (!parseThresholdsFromConfig(*sensorData, sensorThresholds))
316 {
317 std::cerr << "error populating thresholds for "
318 << sensorName << "\n";
319 }
320
321 auto presenceConfig =
322 sensorData->find(baseType + std::string(".Presence"));
323
324 std::unique_ptr<PresenceSensor> presenceSensor(nullptr);
325
326 // presence sensors are optional
327 if (presenceConfig != sensorData->end())
328 {
James Feistde5e9702019-09-18 16:13:02 -0700329 auto findPolarity = presenceConfig->second.find("Polarity");
Zhikui Ren347dd4e2019-12-12 13:39:50 -0800330 auto findPinName = presenceConfig->second.find("PinName");
James Feistde5e9702019-09-18 16:13:02 -0700331
Zhikui Ren347dd4e2019-12-12 13:39:50 -0800332 if (findPinName == presenceConfig->second.end() ||
James Feistde5e9702019-09-18 16:13:02 -0700333 findPolarity == presenceConfig->second.end())
334 {
335 std::cerr << "Malformed Presence Configuration\n";
336 }
337 else
338 {
James Feistde5e9702019-09-18 16:13:02 -0700339 bool inverted = std::get<std::string>(
340 findPolarity->second) == "Low";
Zhikui Ren347dd4e2019-12-12 13:39:50 -0800341 if (auto pinName =
342 std::get_if<std::string>(&findPinName->second))
343 {
344 presenceSensor = std::make_unique<PresenceSensor>(
345 *pinName, inverted, io, sensorName);
346 }
347 else
348 {
349 std::cerr
350 << "Malformed Presence pinName for sensor "
351 << sensorName << " \n";
352 }
James Feistde5e9702019-09-18 16:13:02 -0700353 }
354 }
355 std::optional<RedundancySensor>* redundancy = nullptr;
356 if (fanType == FanTypes::aspeed)
357 {
358 redundancy = &systemRedundancy;
359 }
360
Josh Lehanf920e092020-08-07 00:12:54 -0700361 PowerState powerState = PowerState::on;
362 auto findPower = baseConfiguration->second.find("PowerState");
363 if (findPower != baseConfiguration->second.end())
364 {
365 auto ptrPower =
366 std::get_if<std::string>(&(findPower->second));
367 if (ptrPower)
368 {
369 setReadState(*ptrPower, powerState);
370 }
371 }
372
James Feistde5e9702019-09-18 16:13:02 -0700373 constexpr double defaultMaxReading = 25000;
374 constexpr double defaultMinReading = 0;
375 auto limits =
376 std::make_pair(defaultMinReading, defaultMaxReading);
377
James Feist49a8ccd2020-09-16 16:09:52 -0700378 auto connector =
379 sensorData->find(baseType + std::string(".Connector"));
380
381 std::optional<std::string> led;
Yong Zhao77b3add2021-01-09 04:25:18 +0000382 std::string pwmName;
Zhikui Rend05867c2021-02-26 16:10:34 -0800383 fs::path pwmPath;
James Feist49a8ccd2020-09-16 16:09:52 -0700384
385 if (connector != sensorData->end())
386 {
387 auto findPwm = connector->second.find("Pwm");
388 if (findPwm != connector->second.end())
389 {
Jeff Linabf91de2020-12-23 10:55:42 +0800390 fs::path pwmEnableFile =
391 "pwm" + std::to_string(index + 1) + "_enable";
392 fs::path enablePath =
393 path.parent_path() / pwmEnableFile;
394 enablePwm(enablePath);
James Feist49a8ccd2020-09-16 16:09:52 -0700395 size_t pwm = std::visit(VariantToUnsignedIntVisitor(),
396 findPwm->second);
Zhikui Rend05867c2021-02-26 16:10:34 -0800397 pwmPath = directory / ("pwm" + std::to_string(pwm + 1));
James Feist49a8ccd2020-09-16 16:09:52 -0700398 /* use pwm name override if found in configuration else
399 * use default */
400 auto findOverride = connector->second.find("PwmName");
James Feist49a8ccd2020-09-16 16:09:52 -0700401 if (findOverride != connector->second.end())
402 {
403 pwmName = std::visit(VariantToStringVisitor(),
404 findOverride->second);
405 }
406 else
407 {
408 pwmName = "Pwm_" + std::to_string(pwm + 1);
409 }
James Feist49a8ccd2020-09-16 16:09:52 -0700410 }
411 else
412 {
413 std::cerr << "Connector for " << sensorName
414 << " missing pwm!\n";
415 }
416
417 auto findLED = connector->second.find("LED");
418 if (findLED != connector->second.end())
419 {
420 auto ledName =
421 std::get_if<std::string>(&(findLED->second));
422 if (ledName == nullptr)
423 {
424 std::cerr << "Wrong format for LED of "
425 << sensorName << "\n";
426 }
427 else
428 {
429 led = *ledName;
430 }
431 }
432 }
433
James Feistde5e9702019-09-18 16:13:02 -0700434 findLimits(limits, baseConfiguration);
435 tachSensors[sensorName] = std::make_unique<TachSensor>(
436 path.string(), baseType, objectServer, dbusConnection,
437 std::move(presenceSensor), redundancy, io, sensorName,
Josh Lehanf920e092020-08-07 00:12:54 -0700438 std::move(sensorThresholds), *interfacePath, limits,
James Feist49a8ccd2020-09-16 16:09:52 -0700439 powerState, led);
Yong Zhao77b3add2021-01-09 04:25:18 +0000440
Zhikui Rend05867c2021-02-26 16:10:34 -0800441 if (!pwmPath.empty() && fs::exists(pwmPath) &&
442 !pwmSensors.count(pwmPath))
Yong Zhao77b3add2021-01-09 04:25:18 +0000443 {
444 pwmSensors[pwmPath] = std::make_unique<PwmSensor>(
445 pwmName, pwmPath, dbusConnection, objectServer,
446 *interfacePath, "Fan");
447 }
James Feist95b079b2018-11-21 09:28:00 -0800448 }
Yong Zhao77b3add2021-01-09 04:25:18 +0000449
Kuiying Wangd5407412020-09-09 16:06:56 +0800450 createRedundancySensor(tachSensors, dbusConnection, objectServer);
James Feistde5e9702019-09-18 16:13:02 -0700451 }));
452 getter->getConfiguration(
James Feistf27a55c2020-08-04 14:27:30 -0700453 std::vector<std::string>{sensorTypes.begin(), sensorTypes.end()},
454 retries);
James Feist6714a252018-09-10 15:26:18 -0700455}
456
James Feistb6c0b912019-07-09 12:21:44 -0700457int main()
James Feist6714a252018-09-10 15:26:18 -0700458{
459 boost::asio::io_service io;
460 auto systemBus = std::make_shared<sdbusplus::asio::connection>(io);
461 systemBus->request_name("xyz.openbmc_project.FanSensor");
462 sdbusplus::asio::object_server objectServer(systemBus);
463 boost::container::flat_map<std::string, std::unique_ptr<TachSensor>>
464 tachSensors;
465 boost::container::flat_map<std::string, std::unique_ptr<PwmSensor>>
466 pwmSensors;
467 std::vector<std::unique_ptr<sdbusplus::bus::match::match>> matches;
James Feist5591cf082020-07-15 16:44:54 -0700468 auto sensorsChanged =
469 std::make_shared<boost::container::flat_set<std::string>>();
James Feist6714a252018-09-10 15:26:18 -0700470
471 io.post([&]() {
472 createSensors(io, objectServer, tachSensors, pwmSensors, systemBus,
473 nullptr);
474 });
475
476 boost::asio::deadline_timer filterTimer(io);
477 std::function<void(sdbusplus::message::message&)> eventHandler =
478 [&](sdbusplus::message::message& message) {
479 if (message.is_method_error())
480 {
481 std::cerr << "callback method error\n";
482 return;
483 }
484 sensorsChanged->insert(message.get_path());
485 // this implicitly cancels the timer
486 filterTimer.expires_from_now(boost::posix_time::seconds(1));
487
488 filterTimer.async_wait([&](const boost::system::error_code& ec) {
489 if (ec == boost::asio::error::operation_aborted)
490 {
491 /* we were canceled*/
492 return;
493 }
Ed Tanous8a57ec02020-10-09 12:46:52 -0700494 if (ec)
James Feist6714a252018-09-10 15:26:18 -0700495 {
496 std::cerr << "timer error\n";
497 return;
498 }
499 createSensors(io, objectServer, tachSensors, pwmSensors,
James Feistf27a55c2020-08-04 14:27:30 -0700500 systemBus, sensorsChanged, 5);
James Feist6714a252018-09-10 15:26:18 -0700501 });
502 };
503
Jae Hyun Yoo9ced0a32018-10-25 10:42:39 -0700504 for (const char* type : sensorTypes)
James Feist6714a252018-09-10 15:26:18 -0700505 {
506 auto match = std::make_unique<sdbusplus::bus::match::match>(
507 static_cast<sdbusplus::bus::bus&>(*systemBus),
508 "type='signal',member='PropertiesChanged',path_namespace='" +
Jae Hyun Yoo9ced0a32018-10-25 10:42:39 -0700509 std::string(inventoryPath) + "',arg0namespace='" + type + "'",
James Feist6714a252018-09-10 15:26:18 -0700510 eventHandler);
511 matches.emplace_back(std::move(match));
512 }
513
James Feistdc6c55f2018-10-31 12:53:20 -0700514 // redundancy sensor
515 std::function<void(sdbusplus::message::message&)> redundancyHandler =
516 [&tachSensors, &systemBus,
James Feistb6c0b912019-07-09 12:21:44 -0700517 &objectServer](sdbusplus::message::message&) {
James Feistdc6c55f2018-10-31 12:53:20 -0700518 createRedundancySensor(tachSensors, systemBus, objectServer);
519 };
520 auto match = std::make_unique<sdbusplus::bus::match::match>(
521 static_cast<sdbusplus::bus::bus&>(*systemBus),
522 "type='signal',member='PropertiesChanged',path_namespace='" +
523 std::string(inventoryPath) + "',arg0namespace='" +
524 redundancyConfiguration + "'",
James Feistb6c0b912019-07-09 12:21:44 -0700525 std::move(redundancyHandler));
James Feistdc6c55f2018-10-31 12:53:20 -0700526 matches.emplace_back(std::move(match));
527
James Feist6714a252018-09-10 15:26:18 -0700528 io.run();
529}