/openbmc/bmcweb/redfish-core/lib/ |
H A D | thermal_metrics.hpp | 38 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 D | thermal_subsystem.hpp | 29 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 D | power_subsystem.hpp | 29 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 D | fan.hpp | 40 const std::string& chassisId, in updateFanList() argument 55 "/redfish/v1/Chassis/{}/ThermalSubsystem/Fans/{}", chassisId, in updateFanList() 95 const std::string& chassisId, in doFanCollection() argument 100 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doFanCollection() 109 "/redfish/v1/Chassis/{}/ThermalSubsystem/Fans", chassisId); in doFanCollection() 112 "The collection of Fan resource instances " + chassisId; in doFanCollection() 117 std::bind_front(updateFanList, asyncResp, chassisId)); in doFanCollection() 123 const std::string& chassisId) in handleFanCollectionHead() argument 131 asyncResp, chassisId, in handleFanCollectionHead() 133 chassisId](const std::optional<std::string>& validChassisPath) { in handleFanCollectionHead() [all …]
|
H A D | environment_metrics.hpp | 29 const std::string& chassisId) in handleEnvironmentMetricsHead() argument 36 auto respHandler = [asyncResp, chassisId]( in handleEnvironmentMetricsHead() 40 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in handleEnvironmentMetricsHead() 49 redfish::chassis_utils::getValidChassisPath(asyncResp, chassisId, in handleEnvironmentMetricsHead() 56 const std::string& chassisId) in handleEnvironmentMetricsGet() argument 63 auto respHandler = [asyncResp, chassisId]( in handleEnvironmentMetricsGet() 67 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in handleEnvironmentMetricsGet() 79 "/redfish/v1/Chassis/{}/EnvironmentMetrics", chassisId); in handleEnvironmentMetricsGet() 82 redfish::chassis_utils::getValidChassisPath(asyncResp, chassisId, in handleEnvironmentMetricsGet()
|
H A D | chassis.hpp | 269 const std::string& chassisId, const boost::system::error_code& ec, in getChassisContainedBy() argument 287 BMCWEB_LOG_ERROR("{} is contained by multiple chassis", chassisId); in getChassisContainedBy() 298 upstreamChassisPath.str, chassisId); in getChassisContainedBy() 308 const std::string& chassisId, const boost::system::error_code& ec, in getChassisContains() argument 337 downstreamChassisPath.str, chassisId); in getChassisContains() 350 const std::string& chassisId, const std::string& chassisPath) in getChassisConnectivity() argument 362 std::bind_front(getChassisContainedBy, asyncResp, chassisId)); in getChassisConnectivity() 367 interfaces, std::bind_front(getChassisContains, asyncResp, chassisId)); in getChassisConnectivity() 424 const std::string& chassisId, const std::string& path, in handleDecoratorAssetProperties() argument 471 asyncResp->res.jsonValue["Name"] = chassisId; in handleDecoratorAssetProperties() [all …]
|
H A D | power_supply.hpp | 44 const std::string& chassisId, in updatePowerSupplyList() argument 59 "/redfish/v1/Chassis/{}/PowerSubsystem/PowerSupplies/{}", chassisId, in updatePowerSupplyList() 69 const std::string& chassisId, const boost::system::error_code& ec, in doPowerSupplyCollection() argument 88 "/redfish/v1/Chassis/{}/PowerSubsystem/PowerSupplies", chassisId); in doPowerSupplyCollection() 94 updatePowerSupplyList(asyncResp, chassisId, subtreePaths); in doPowerSupplyCollection() 100 const std::string& chassisId) in handlePowerSupplyCollectionHead() argument 108 asyncResp, chassisId, in handlePowerSupplyCollectionHead() 110 chassisId](const std::optional<std::string>& validChassisPath) { in handlePowerSupplyCollectionHead() 114 chassisId); in handlePowerSupplyCollectionHead() 126 const std::string& chassisId) in handlePowerSupplyCollectionGet() argument [all …]
|
H A D | storage.hpp | 678 asyncResp, [](const std::string& chassisId, in afterGetSubtreeSystemsStorageDrive() 681 boost::urls::format("/redfish/v1/Chassis/{}", chassisId); in afterGetSubtreeSystemsStorageDrive() 733 const std::string& chassisId, const boost::system::error_code& ec, in afterChassisDriveCollectionSubtreeGet() argument 740 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in afterChassisDriveCollectionSubtreeGet() 751 if (objPath.filename() != chassisId) in afterChassisDriveCollectionSubtreeGet() 765 boost::urls::format("/redfish/v1/Chassis/{}/Drives", chassisId); in afterChassisDriveCollectionSubtreeGet() 771 [asyncResp, chassisId](const boost::system::error_code& ec3, in afterChassisDriveCollectionSubtreeGet() 795 chassisId, leafName); in afterChassisDriveCollectionSubtreeGet() 811 const std::string& chassisId) in chassisDriveCollectionGet() argument 825 chassisId)); in chassisDriveCollectionGet() [all …]
|
H A D | power.hpp | 81 sensorsAsyncResp->chassisId); in afterGetChassisPath() 138 "/redfish/v1/Chassis/" + sensorAsyncResp->chassisId + in afterPowerCapSettingGet() 242 if (interfaceChassisName == sensorAsyncResp->chassisId) in afterGetChassis() 252 sensorAsyncResp->chassisId); in afterGetChassis() 327 sensorAsyncResp->asyncResp, sensorAsyncResp->chassisId, in handleChassisPowerPatch()
|
H A D | sensors.hpp | 146 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() 226 const std::string chassisId; 411 std::string_view chassisId, std::string_view chassisSubNode, in getChassis() 424 chassisIdStr{std::string(chassisId)}, in getChassis() 560 sensorsAsyncResp->chassisId) != in populateFanRedundancy() 686 sensorsAsyncResp->chassisId, in populateFanRedundancy() 1762 * @param chassisId Chassis that contains the power supply. 1767 const std::string& chassisId) in getPowerSupply() 224 const std::string chassisId; global() member in redfish::SensorsAsyncResp 409 getChassis(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,std::string_view chassisId,std::string_view chassisSubNode,std::span<const std::string_view> sensorTypes,Callback && callback) getChassis() argument 1765 getPowerSupply(nlohmann::json & powerSupplyArray,const InventoryItem & inventoryItem,const std::string & chassisId) getPowerSupply() argument 2334 getChassisCallback(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,std::string_view chassisId,std::string_view chassisSubNode,const std::shared_ptr<std::set<std::string>> & sensorNames) getChassisCallback() argument 2369 handleSensorCollectionGet(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId) handleSensorCollectionGet() argument 2439 handleSensorGet(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & sensorId) handleSensorGet() argument [all...] |
H A D | redfish_util.hpp | 94 std::string chassisId = subtree[0].first.substr(idPos + 1); in getMainChassisId() local 95 BMCWEB_LOG_DEBUG("chassisId = {}", chassisId); in getMainChassisId() 96 callback(chassisId, asyncResp); in getMainChassisId()
|
H A D | log_services.hpp | 2151 const std::string& chassisId) in handleLogServicesDumpServiceComputerSystemGet() argument 2157 if (chassisId != BMCWEB_REDFISH_SYSTEM_URI_NAME) in handleLogServicesDumpServiceComputerSystemGet() 2159 messages::resourceNotFound(asyncResp->res, "ComputerSystem", chassisId); in handleLogServicesDumpServiceComputerSystemGet() 2186 const std::string& chassisId) in handleLogServicesDumpEntriesCollectionComputerSystemGet() argument 2192 if (chassisId != BMCWEB_REDFISH_SYSTEM_URI_NAME) in handleLogServicesDumpEntriesCollectionComputerSystemGet() 2194 messages::resourceNotFound(asyncResp->res, "ComputerSystem", chassisId); in handleLogServicesDumpEntriesCollectionComputerSystemGet() 2220 const std::string& chassisId, const std::string& dumpId) in handleLogServicesDumpEntryComputerSystemGet() argument 2226 if (chassisId != BMCWEB_REDFISH_SYSTEM_URI_NAME) in handleLogServicesDumpEntryComputerSystemGet() 2228 messages::resourceNotFound(asyncResp->res, "ComputerSystem", chassisId); in handleLogServicesDumpEntryComputerSystemGet() 2255 const std::string& chassisId, const std::string& dumpId) in handleLogServicesDumpEntryComputerSystemDelete() argument [all …]
|
H A D | managers.hpp | 719 getMainChassisId(asyncResp, [](const std::string& chassisId, in requestRoutesManager() 727 boost::urls::format("/redfish/v1/Chassis/{}", chassisId); in requestRoutesManager()
|
H A D | systems.hpp | 3115 asyncResp, [](const std::string& chassisId, in handleComputerSystemGet() 3120 boost::urls::format("/redfish/v1/Chassis/{}", chassisId); in handleComputerSystemGet()
|
/openbmc/phosphor-state-manager/ |
H A D | chassis_state_manager_main.cpp | 24 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 D | chassis_check_power_status.cpp | 28 size_t chassisId = 0; in main() local 30 auto chassisBusName = ChassisState::interface + std::to_string(chassisId); in main() 42 chassisId = std::stoul(optarg); in main() 50 std::to_string(chassisId); in main()
|
H A D | bmc_state_manager.cpp | 341 size_t chassisId = 0; in discoverLastRebootCause() local 342 if (phosphor::state::manager::utils::checkACLoss(chassisId)) in discoverLastRebootCause()
|
H A D | utils.hpp | 92 bool checkACLoss(size_t& chassisId);
|
H A D | utils.cpp | 233 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 D | chassis_utils.hpp | 30 const std::string& chassisId, Callback&& callback) in getValidChassisPath() argument 41 chassisId](const boost::system::error_code& ec, in getValidChassisPath() 63 if (chassisName == chassisId) in getValidChassisPath()
|
H A D | sensor_utils.hpp | 699 * @param chassisId The Chassis Id for the sensor in objectExcerptToJson() 709 const std::string& path, const std::string_view chassisId, in objectExcerptToJson() 740 boost::urls::format("/redfish/v1/Chassis/{}/Sensors/{}", chassisId, in getAllSensorObjects() 693 objectExcerptToJson(const std::string & path,const std::string_view chassisId,ChassisSubNode chassisSubNode,const std::optional<std::string> & sensorTypeExpected,const dbus::utility::DBusPropertiesMap & propertiesDict,nlohmann::json & sensorJson) objectExcerptToJson() argument
|
/openbmc/bmcweb/test/redfish-core/lib/ |
H A D | thermal_subsystem_test.cpp | 20 constexpr const char* chassisId = "ChassisId"; variable 41 shareAsyncResp, chassisId, in TEST()
|
H A D | power_subsystem_test.cpp | 20 constexpr const char* chassisId = "ChassisId"; variable 42 shareAsyncResp, chassisId, in TEST()
|
H A D | chassis_test.cpp | 29 void assertChassisResetActionInfoGet(const std::string& chassisId, in assertChassisResetActionInfoGet() argument 34 "/redfish/v1/Chassis/" + chassisId + "/ResetActionInfo"); in assertChassisResetActionInfoGet()
|
/openbmc/bmcweb/redfish-core/lib/openbmc/ |
H A D | openbmc_managers.hpp | 805 std::optional<std::string> chassisId; in createPidInterface() local 810 "Chassis/@odata.id", chassisId, // in createPidInterface() 817 if (chassisId) in createPidInterface() 820 if (!dbus::utility::getNthStringFromPath(*chassisId, 3, chassis)) in createPidInterface() 822 BMCWEB_LOG_ERROR("Got invalid path {}", *chassisId); in createPidInterface() 825 boost::urls::format("/redfish/v1/Chassis/{}", *chassisId)); in createPidInterface()
|