Home
last modified time | relevance | path

Searched refs:chassisId (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/bmcweb/redfish-core/lib/
H A Dthermal_subsystem.hpp29 const std::string& chassisId, in doThermalSubsystemCollection() argument
34 BMCWEB_LOG_WARNING("Not a valid chassis ID{}", chassisId); in doThermalSubsystemCollection()
35 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doThermalSubsystemCollection()
48 "/redfish/v1/Chassis/{}/ThermalSubsystem", chassisId); in doThermalSubsystemCollection()
51 "/redfish/v1/Chassis/{}/ThermalSubsystem/Fans", chassisId); in doThermalSubsystemCollection()
56 chassisId); in doThermalSubsystemCollection()
65 const std::string& chassisId) in handleThermalSubsystemCollectionHead() argument
72 auto respHandler = [asyncResp, chassisId]( in handleThermalSubsystemCollectionHead()
76 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in handleThermalSubsystemCollectionHead()
83 redfish::chassis_utils::getValidChassisPath(asyncResp, chassisId, in handleThermalSubsystemCollectionHead()
[all …]
H A Dthermal_metrics.hpp38 const std::string& chassisId, const std::string& path, in afterGetTemperatureValue() argument
59 path, chassisId, sensor_utils::ChassisSubNode::thermalMetricsNode, in afterGetTemperatureValue()
83 const std::string& chassisId, const boost::system::error_code& ec, in handleTemperatureReadingsCelsius() argument
106 [asyncResp, chassisId, in handleTemperatureReadingsCelsius()
109 afterGetTemperatureValue(asyncResp, chassisId, sensorPath, ec1, in handleTemperatureReadingsCelsius()
117 const std::string& validChassisPath, const std::string& chassisId) in getTemperatureReadingsCelsius() argument
126 chassisId)); in getTemperatureReadingsCelsius()
131 const std::string& chassisId, in doThermalMetrics() argument
136 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doThermalMetrics()
146 "/redfish/v1/Chassis/{}/ThermalSubsystem/ThermalMetrics", chassisId); in doThermalMetrics()
[all …]
H A Denvironment_metrics.hpp36 const std::string& chassisId, const std::string& path, in afterGetPowerWatts() argument
56 path, chassisId, in afterGetPowerWatts()
66 const std::string& chassisId, const boost::system::error_code& ec, in handleTotalPowerList() argument
100 [asyncResp, chassisId, in handleTotalPowerList()
103 afterGetPowerWatts(asyncResp, chassisId, sensorPath, ec1, in handleTotalPowerList()
110 const std::string& chassisId, const boost::system::error_code& ec, in getTotalPowerSensor() argument
139 std::bind_front(handleTotalPowerList, asyncResp, chassisId)); in getTotalPowerSensor()
164 const std::string& chassisId) in getPowerWatts() argument
172 std::bind_front(getTotalPowerSensor, asyncResp, chassisId)); in getPowerWatts()
178 const std::string& chassisId) in handleEnvironmentMetricsHead() argument
[all …]
H A Dpower_subsystem.hpp29 const std::string& chassisId, in doPowerSubsystemCollection() argument
34 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doPowerSubsystemCollection()
46 boost::urls::format("/redfish/v1/Chassis/{}/PowerSubsystem", chassisId); in doPowerSubsystemCollection()
51 "/redfish/v1/Chassis/{}/PowerSubsystem/PowerSupplies", chassisId); in doPowerSubsystemCollection()
57 const std::string& chassisId) in handlePowerSubsystemCollectionHead() argument
64 auto respHandler = [asyncResp, chassisId]( in handlePowerSubsystemCollectionHead()
68 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in handlePowerSubsystemCollectionHead()
75 redfish::chassis_utils::getValidChassisPath(asyncResp, chassisId, in handlePowerSubsystemCollectionHead()
82 const std::string& chassisId) in handlePowerSubsystemCollectionGet() argument
90 asyncResp, chassisId, in handlePowerSubsystemCollectionGet()
[all …]
H A Dfan.hpp39 const std::string& chassisId, in updateFanList() argument
54 "/redfish/v1/Chassis/{}/ThermalSubsystem/Fans/{}", chassisId, in updateFanList()
63 const std::string& chassisId, in doFanCollection() argument
68 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doFanCollection()
77 "/redfish/v1/Chassis/{}/ThermalSubsystem/Fans", chassisId); in doFanCollection()
80 "The collection of Fan resource instances " + chassisId; in doFanCollection()
86 std::bind_front(updateFanList, asyncResp, chassisId)); in doFanCollection()
92 const std::string& chassisId) in handleFanCollectionHead() argument
100 asyncResp, chassisId, in handleFanCollectionHead()
102 chassisId](const std::optional<std::string>& validChassisPath) { in handleFanCollectionHead()
[all …]
H A Dchassis.hpp285 const std::string& chassisId, const boost::system::error_code& ec, in getChassisContainedBy() argument
303 BMCWEB_LOG_ERROR("{} is contained by multiple chassis", chassisId); in getChassisContainedBy()
314 upstreamChassisPath.str, chassisId); in getChassisContainedBy()
324 const std::string& chassisId, const boost::system::error_code& ec, in getChassisContains() argument
353 downstreamChassisPath.str, chassisId); in getChassisContains()
366 const std::string& chassisId, const std::string& chassisPath) in getChassisConnectivity() argument
374 std::bind_front(getChassisContainedBy, asyncResp, chassisId)); in getChassisConnectivity()
380 std::bind_front(getChassisContains, asyncResp, chassisId)); in getChassisConnectivity()
437 const std::string& chassisId, const std::string& path, in handleDecoratorAssetProperties() argument
443 asyncResp->res.jsonValue["Name"] = chassisId; in handleDecoratorAssetProperties()
[all …]
H A Dpower_supply.hpp47 const std::string& chassisId, in updatePowerSupplyList()
62 "/redfish/v1/Chassis/{}/PowerSubsystem/PowerSupplies/{}", chassisId, in updatePowerSupplyList()
72 const std::string& chassisId, const boost::system::error_code& ec, in doPowerSupplyCollection()
80 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doPowerSupplyCollection()
97 "/redfish/v1/Chassis/{}/PowerSubsystem/PowerSupplies", chassisId); in doPowerSupplyCollection()
103 updatePowerSupplyList(asyncResp, chassisId, subtreePaths); in doPowerSupplyCollection()
109 const std::string& chassisId) in handlePowerSupplyCollectionHead()
117 asyncResp, chassisId, in handlePowerSupplyCollectionHead()
119 chassisId](const std::optional<std::string>& validChassisPath) { in handlePowerSupplyCollectionHead()
124 chassisId); in handlePowerSupplyCollectionHead()
46 updatePowerSupplyList(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const dbus::utility::MapperGetSubTreePathsResponse & powerSupplyPaths) updatePowerSupplyList() argument
71 doPowerSupplyCollection(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreePathsResponse & subtreePaths) doPowerSupplyCollection() argument
108 handlePowerSupplyCollectionHead(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId) handlePowerSupplyCollectionHead() argument
135 handlePowerSupplyCollectionGet(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId) handlePowerSupplyCollectionGet() argument
207 getValidPowerSupplyPath(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId,std::function<void (const std::string & powerSupplyPath,const std::string & service)> && callback) getValidPowerSupplyPath() argument
480 doPowerSupplyGet(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId,const std::string & powerSupplyPath,const std::string & service) doPowerSupplyGet() argument
516 handlePowerSupplyHead(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId) handlePowerSupplyHead() argument
544 handlePowerSupplyGet(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId) handlePowerSupplyGet() argument
567 handlePowerSupplyPatch(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId) handlePowerSupplyPatch() argument
[all...]
H A Dstorage_chassis.hpp352 asyncResp, [](const std::string& chassisId, in afterGetSubtreeSystemsStorageDrive()
355 boost::urls::format("/redfish/v1/Chassis/{}", chassisId); in afterGetSubtreeSystemsStorageDrive()
367 const std::string& chassisId, const boost::system::error_code& ec, in afterChassisDriveCollectionSubtreeGet() argument
374 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in afterChassisDriveCollectionSubtreeGet()
385 if (objPath.filename() != chassisId) in afterChassisDriveCollectionSubtreeGet()
399 boost::urls::format("/redfish/v1/Chassis/{}/Drives", chassisId); in afterChassisDriveCollectionSubtreeGet()
405 [asyncResp, chassisId](const boost::system::error_code& ec3, in afterChassisDriveCollectionSubtreeGet()
429 chassisId, leafName); in afterChassisDriveCollectionSubtreeGet()
446 const std::string& chassisId) in chassisDriveCollectionGet() argument
457 chassisId)); in chassisDriveCollectionGet()
[all …]
H A Dpower.hpp80 sensorsAsyncResp->chassisId); in afterGetChassisPath()
137 "/redfish/v1/Chassis/" + sensorAsyncResp->chassisId + in afterPowerCapSettingGet()
241 if (interfaceChassisName == sensorAsyncResp->chassisId) in afterGetChassis()
251 sensorAsyncResp->chassisId); in afterGetChassis()
322 sensorAsyncResp->asyncResp, sensorAsyncResp->chassisId, in handleChassisPowerPatch()
H A Dsensors.hpp146 asyncResp(asyncRespIn), chassisId(chassisIdIn), types(typesIn), in SensorsAsyncResp()
156 asyncResp(asyncRespIn), chassisId(chassisIdIn), types(typesIn), in SensorsAsyncResp()
167 asyncResp(asyncRespIn), chassisId(chassisIdIn), types(typesIn), in SensorsAsyncResp()
246 const std::string chassisId; member in redfish::SensorsAsyncResp
431 std::string_view chassisId, std::string_view chassisSubNode, in getChassis() argument
441 chassisIdStr{std::string(chassisId)}, in getChassis()
577 sensorsAsyncResp->chassisId) != in populateFanRedundancy()
703 sensorsAsyncResp->chassisId, in populateFanRedundancy()
1795 const std::string& chassisId) in getPowerSupply() argument
1823 boost::urls::format("/redfish/v1/Chassis/{}/Power", chassisId); in getPowerSupply()
[all …]
H A Dredfish_util.hpp92 std::string chassisId = subtree[0].first.substr(idPos + 1); in getMainChassisId() local
93 BMCWEB_LOG_DEBUG("chassisId = {}", chassisId); in getMainChassisId()
94 callback(chassisId, asyncResp); in getMainChassisId()
H A Dlog_services.hpp1236 const std::string& chassisId) in handleLogServicesDumpServiceComputerSystemGet() argument
1242 if (chassisId != BMCWEB_REDFISH_SYSTEM_URI_NAME) in handleLogServicesDumpServiceComputerSystemGet()
1244 messages::resourceNotFound(asyncResp->res, "ComputerSystem", chassisId); in handleLogServicesDumpServiceComputerSystemGet()
1271 const std::string& chassisId) in handleLogServicesDumpEntriesCollectionComputerSystemGet() argument
1277 if (chassisId != BMCWEB_REDFISH_SYSTEM_URI_NAME) in handleLogServicesDumpEntriesCollectionComputerSystemGet()
1279 messages::resourceNotFound(asyncResp->res, "ComputerSystem", chassisId); in handleLogServicesDumpEntriesCollectionComputerSystemGet()
1305 const std::string& chassisId, const std::string& dumpId) in handleLogServicesDumpEntryComputerSystemGet() argument
1311 if (chassisId != BMCWEB_REDFISH_SYSTEM_URI_NAME) in handleLogServicesDumpEntryComputerSystemGet()
1313 messages::resourceNotFound(asyncResp->res, "ComputerSystem", chassisId); in handleLogServicesDumpEntryComputerSystemGet()
1340 const std::string& chassisId, const std::string& dumpId) in handleLogServicesDumpEntryComputerSystemDelete() argument
[all …]
/openbmc/phosphor-state-manager/
H A Dchassis_state_manager_main.cpp24 size_t chassisId = 0; in main() local
35 chassisId = std::stoul(optarg); in main()
46 auto chassisBusName = ChassisState::interface + std::to_string(chassisId); in main()
49 std::to_string(chassisId); in main()
53 if (chassisId == 0) in main()
63 fs::path newPohPath{std::format(POH_COUNTER_PERSIST_PATH, chassisId)}; in main()
65 std::format(CHASSIS_STATE_CHANGE_PERSIST_PATH, chassisId)}; in main()
79 chassisId); in main()
83 if (chassisId == 0) in main()
H A Dchassis_check_power_status.cpp28 size_t chassisId = 0; in main() local
41 chassisId = std::stoul(optarg); in main()
49 std::to_string(chassisId); in main()
H A Dutils.hpp92 bool checkACLoss(size_t& chassisId);
H A Dbmc_state_manager.cpp354 size_t chassisId = 0; in discoverLastRebootCause() local
355 if (phosphor::state::manager::utils::checkACLoss(chassisId)) in discoverLastRebootCause()
H A Dutils.cpp233 bool checkACLoss(size_t& chassisId) in checkACLoss() argument
236 std::format(CHASSIS_LOST_POWER_FILE, chassisId); in checkACLoss()
/openbmc/bmcweb/redfish-core/include/utils/
H A Dchassis_utils.hpp35 const std::string& chassisId, Callback&& callback) in getValidChassisPath() argument
43 chassisId](const boost::system::error_code& ec, in getValidChassisPath()
65 if (chassisName == chassisId) in getValidChassisPath()
H A Dassembly_utils.hpp77 const std::string& chassisId, in getChassisAssembly() argument
85 chassisId, "/xyz/openbmc_project/inventory", chassisInterfaces, in getChassisAssembly()
/openbmc/phosphor-power/
H A Dutility.cpp231 uint32_t chassisId; in getChassisInventoryUniqueId() local
233 INVENTORY_MGR_IFACE, bus, chassisId); in getChassisInventoryUniqueId()
234 return static_cast<uint64_t>(chassisId); in getChassisInventoryUniqueId()
240 uint64_t chassisId; in getParentEMUniqueId() local
243 ENTITY_MGR_SERVICE, bus, chassisId); in getParentEMUniqueId()
244 return chassisId; in getParentEMUniqueId()
/openbmc/bmcweb/test/redfish-core/lib/
H A Dthermal_subsystem_test.cpp20 constexpr const char* chassisId = "ChassisId"; variable
41 shareAsyncResp, chassisId, in TEST()
H A Dpower_subsystem_test.cpp20 constexpr const char* chassisId = "ChassisId"; variable
42 shareAsyncResp, chassisId, in TEST()
H A Dchassis_test.cpp29 void assertChassisResetActionInfoGet(const std::string& chassisId, in assertChassisResetActionInfoGet() argument
34 "/redfish/v1/Chassis/" + chassisId + "/ResetActionInfo"); in assertChassisResetActionInfoGet()
/openbmc/phosphor-power/phosphor-power-supply/
H A Dchassis_manager.cpp102 uint64_t chassisId) in getMatchingChassisPtr() argument
106 if (chassisPtr->getChassisId() == chassisId) in getMatchingChassisPtr()
111 lg2::debug("Chassis ID {ID} not found", "ID", chassisId); in getMatchingChassisPtr()
H A Dchassis_manager.hpp124 uint64_t chassisId);

12