Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 1 | /* |
| 2 | // Copyright (c) 2018 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 | #pragma once |
| 17 | |
James Feist | b49ac87 | 2019-05-21 15:12:01 -0700 | [diff] [blame] | 18 | #include "health.hpp" |
James Feist | 1c8fba9 | 2019-12-20 15:12:07 -0800 | [diff] [blame] | 19 | #include "led.hpp" |
Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 20 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 21 | #include <app.hpp> |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 22 | #include <boost/container/flat_map.hpp> |
Ed Tanous | ed39821 | 2021-06-09 17:05:54 -0700 | [diff] [blame] | 23 | #include <registries/privilege_registry.hpp> |
Gunnar Mills | 02f6ff1 | 2020-10-14 15:59:58 -0500 | [diff] [blame] | 24 | #include <utils/collection.hpp> |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 25 | |
Ed Tanous | abf2add | 2019-01-22 16:40:12 -0800 | [diff] [blame] | 26 | #include <variant> |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 27 | |
Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 28 | namespace redfish |
| 29 | { |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 30 | |
| 31 | /** |
Gunnar Mills | beeca0a | 2019-02-14 16:30:45 -0600 | [diff] [blame] | 32 | * @brief Retrieves chassis state properties over dbus |
| 33 | * |
| 34 | * @param[in] aResp - Shared pointer for completing asynchronous calls. |
| 35 | * |
| 36 | * @return None. |
| 37 | */ |
zhanghch05 | 8d1b46d | 2021-04-01 11:18:24 +0800 | [diff] [blame] | 38 | inline void getChassisState(std::shared_ptr<bmcweb::AsyncResp> aResp) |
Gunnar Mills | beeca0a | 2019-02-14 16:30:45 -0600 | [diff] [blame] | 39 | { |
| 40 | crow::connections::systemBus->async_method_call( |
| 41 | [aResp{std::move(aResp)}]( |
| 42 | const boost::system::error_code ec, |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 43 | const std::variant<std::string>& chassisState) { |
Gunnar Mills | beeca0a | 2019-02-14 16:30:45 -0600 | [diff] [blame] | 44 | if (ec) |
| 45 | { |
| 46 | BMCWEB_LOG_DEBUG << "DBUS response error " << ec; |
| 47 | messages::internalError(aResp->res); |
| 48 | return; |
| 49 | } |
| 50 | |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 51 | const std::string* s = std::get_if<std::string>(&chassisState); |
Gunnar Mills | beeca0a | 2019-02-14 16:30:45 -0600 | [diff] [blame] | 52 | BMCWEB_LOG_DEBUG << "Chassis state: " << *s; |
| 53 | if (s != nullptr) |
| 54 | { |
| 55 | // Verify Chassis State |
| 56 | if (*s == "xyz.openbmc_project.State.Chassis.PowerState.On") |
| 57 | { |
| 58 | aResp->res.jsonValue["PowerState"] = "On"; |
| 59 | aResp->res.jsonValue["Status"]["State"] = "Enabled"; |
| 60 | } |
| 61 | else if (*s == |
| 62 | "xyz.openbmc_project.State.Chassis.PowerState.Off") |
| 63 | { |
| 64 | aResp->res.jsonValue["PowerState"] = "Off"; |
| 65 | aResp->res.jsonValue["Status"]["State"] = "StandbyOffline"; |
| 66 | } |
| 67 | } |
| 68 | }, |
| 69 | "xyz.openbmc_project.State.Chassis", |
| 70 | "/xyz/openbmc_project/state/chassis0", |
| 71 | "org.freedesktop.DBus.Properties", "Get", |
| 72 | "xyz.openbmc_project.State.Chassis", "CurrentPowerState"); |
| 73 | } |
| 74 | |
| 75 | /** |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 76 | * DBus types primitives for several generic DBus interfaces |
| 77 | * TODO(Pawel) consider move this to separate file into boost::dbus |
| 78 | */ |
Ed Tanous | 55c7b7a | 2018-05-22 15:27:24 -0700 | [diff] [blame] | 79 | // Note, this is not a very useful Variant, but because it isn't used to get |
Ed Tanous | aa2e59c | 2018-04-12 12:17:20 -0700 | [diff] [blame] | 80 | // values, it should be as simple as possible |
| 81 | // TODO(ed) invent a nullvariant type |
Cheng C Yang | 5fd7ba6 | 2019-11-28 15:58:08 +0800 | [diff] [blame] | 82 | using VariantType = std::variant<bool, std::string, uint64_t, uint32_t>; |
Ed Tanous | aa2e59c | 2018-04-12 12:17:20 -0700 | [diff] [blame] | 83 | using ManagedObjectsType = std::vector<std::pair< |
| 84 | sdbusplus::message::object_path, |
| 85 | std::vector<std::pair<std::string, |
| 86 | std::vector<std::pair<std::string, VariantType>>>>>>; |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 87 | |
Ed Tanous | aa2e59c | 2018-04-12 12:17:20 -0700 | [diff] [blame] | 88 | using PropertiesType = boost::container::flat_map<std::string, VariantType>; |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 89 | |
zhanghch05 | 8d1b46d | 2021-04-01 11:18:24 +0800 | [diff] [blame] | 90 | inline void getIntrusionByService(std::shared_ptr<bmcweb::AsyncResp> aResp, |
Ed Tanous | 23a21a1 | 2020-07-25 04:45:05 +0000 | [diff] [blame] | 91 | const std::string& service, |
| 92 | const std::string& objPath) |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 93 | { |
| 94 | BMCWEB_LOG_DEBUG << "Get intrusion status by service \n"; |
| 95 | |
| 96 | crow::connections::systemBus->async_method_call( |
| 97 | [aResp{std::move(aResp)}](const boost::system::error_code ec, |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 98 | const std::variant<std::string>& value) { |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 99 | if (ec) |
| 100 | { |
Gunnar Mills | 4e0453b | 2020-07-08 14:00:30 -0500 | [diff] [blame] | 101 | // do not add err msg in redfish response, because this is not |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 102 | // mandatory property |
| 103 | BMCWEB_LOG_ERROR << "DBUS response error " << ec << "\n"; |
| 104 | return; |
| 105 | } |
| 106 | |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 107 | const std::string* status = std::get_if<std::string>(&value); |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 108 | |
| 109 | if (status == nullptr) |
| 110 | { |
| 111 | BMCWEB_LOG_ERROR << "intrusion status read error \n"; |
| 112 | return; |
| 113 | } |
| 114 | |
| 115 | aResp->res.jsonValue["PhysicalSecurity"] = { |
| 116 | {"IntrusionSensorNumber", 1}, {"IntrusionSensor", *status}}; |
| 117 | }, |
| 118 | service, objPath, "org.freedesktop.DBus.Properties", "Get", |
| 119 | "xyz.openbmc_project.Chassis.Intrusion", "Status"); |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Retrieves physical security properties over dbus |
| 124 | */ |
zhanghch05 | 8d1b46d | 2021-04-01 11:18:24 +0800 | [diff] [blame] | 125 | inline void getPhysicalSecurityData(std::shared_ptr<bmcweb::AsyncResp> aResp) |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 126 | { |
| 127 | crow::connections::systemBus->async_method_call( |
| 128 | [aResp{std::move(aResp)}]( |
| 129 | const boost::system::error_code ec, |
| 130 | const std::vector<std::pair< |
| 131 | std::string, |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 132 | std::vector<std::pair<std::string, std::vector<std::string>>>>>& |
| 133 | subtree) { |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 134 | if (ec) |
| 135 | { |
Gunnar Mills | 4e0453b | 2020-07-08 14:00:30 -0500 | [diff] [blame] | 136 | // do not add err msg in redfish response, because this is not |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 137 | // mandatory property |
Andrew Geissler | 54fbf17 | 2021-11-11 15:59:30 -0600 | [diff] [blame] | 138 | BMCWEB_LOG_INFO << "DBUS error: no matched iface " << ec |
| 139 | << "\n"; |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 140 | return; |
| 141 | } |
| 142 | // Iterate over all retrieved ObjectPaths. |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 143 | for (const auto& object : subtree) |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 144 | { |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 145 | for (const auto& service : object.second) |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 146 | { |
| 147 | getIntrusionByService(aResp, service.first, object.first); |
| 148 | return; |
| 149 | } |
| 150 | } |
| 151 | }, |
| 152 | "xyz.openbmc_project.ObjectMapper", |
| 153 | "/xyz/openbmc_project/object_mapper", |
| 154 | "xyz.openbmc_project.ObjectMapper", "GetSubTree", |
Ed Tanous | 271584a | 2019-07-09 16:24:22 -0700 | [diff] [blame] | 155 | "/xyz/openbmc_project/Intrusion", 1, |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 156 | std::array<const char*, 1>{"xyz.openbmc_project.Chassis.Intrusion"}); |
Qiang XU | c181942 | 2019-02-27 13:51:32 +0800 | [diff] [blame] | 157 | } |
| 158 | |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 159 | /** |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 160 | * ChassisCollection derived class for delivering Chassis Collection Schema |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 161 | * Functions triggers appropriate requests on DBus |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 162 | */ |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 163 | inline void requestRoutesChassisCollection(App& app) |
Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 164 | { |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 165 | BMCWEB_ROUTE(app, "/redfish/v1/Chassis/") |
Ed Tanous | ed39821 | 2021-06-09 17:05:54 -0700 | [diff] [blame] | 166 | .privileges(redfish::privileges::getChassisCollection) |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 167 | .methods(boost::beast::http::verb::get)( |
| 168 | [](const crow::Request&, |
| 169 | const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) { |
| 170 | asyncResp->res.jsonValue["@odata.type"] = |
| 171 | "#ChassisCollection.ChassisCollection"; |
| 172 | asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/Chassis"; |
| 173 | asyncResp->res.jsonValue["Name"] = "Chassis Collection"; |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 174 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 175 | collection_util::getCollectionMembers( |
| 176 | asyncResp, "/redfish/v1/Chassis", |
| 177 | {"xyz.openbmc_project.Inventory.Item.Board", |
| 178 | "xyz.openbmc_project.Inventory.Item.Chassis"}); |
| 179 | }); |
| 180 | } |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 181 | |
Willy Tu | 308f70c | 2021-09-28 20:24:52 -0700 | [diff] [blame] | 182 | inline void |
| 183 | getChassisLocationCode(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, |
| 184 | const std::string& connectionName, |
| 185 | const std::string& path) |
| 186 | { |
| 187 | crow::connections::systemBus->async_method_call( |
| 188 | [asyncResp](const boost::system::error_code ec, |
| 189 | const std::variant<std::string>& property) { |
| 190 | if (ec) |
| 191 | { |
| 192 | BMCWEB_LOG_DEBUG << "DBUS response error for " |
| 193 | "Location"; |
| 194 | messages::internalError(asyncResp->res); |
| 195 | return; |
| 196 | } |
| 197 | |
| 198 | const std::string* value = std::get_if<std::string>(&property); |
| 199 | if (value == nullptr) |
| 200 | { |
| 201 | BMCWEB_LOG_DEBUG << "Null value returned " |
| 202 | "for locaton code"; |
| 203 | messages::internalError(asyncResp->res); |
| 204 | return; |
| 205 | } |
| 206 | asyncResp->res |
| 207 | .jsonValue["Location"]["PartLocation"]["ServiceLabel"] = *value; |
| 208 | }, |
| 209 | connectionName, path, "org.freedesktop.DBus.Properties", "Get", |
| 210 | "xyz.openbmc_project.Inventory.Decorator.LocationCode", "LocationCode"); |
| 211 | } |
| 212 | |
| 213 | inline void getChassisUUID(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, |
| 214 | const std::string& connectionName, |
| 215 | const std::string& path) |
| 216 | { |
| 217 | crow::connections::systemBus->async_method_call( |
| 218 | [asyncResp](const boost::system::error_code ec, |
| 219 | const std::variant<std::string>& chassisUUID) { |
| 220 | if (ec) |
| 221 | { |
| 222 | BMCWEB_LOG_DEBUG << "DBUS response error for " |
| 223 | "UUID"; |
| 224 | messages::internalError(asyncResp->res); |
| 225 | return; |
| 226 | } |
| 227 | const std::string* value = std::get_if<std::string>(&chassisUUID); |
| 228 | if (value == nullptr) |
| 229 | { |
| 230 | BMCWEB_LOG_DEBUG << "Null value returned " |
| 231 | "for UUID"; |
| 232 | messages::internalError(asyncResp->res); |
| 233 | return; |
| 234 | } |
| 235 | asyncResp->res.jsonValue["UUID"] = *value; |
| 236 | }, |
| 237 | connectionName, path, "org.freedesktop.DBus.Properties", "Get", |
| 238 | "xyz.openbmc_project.Common.UUID", "UUID"); |
| 239 | } |
| 240 | |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 241 | /** |
| 242 | * Chassis override class for delivering Chassis Schema |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 243 | * Functions triggers appropriate requests on DBus |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 244 | */ |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 245 | inline void requestRoutesChassis(App& app) |
Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 246 | { |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 247 | BMCWEB_ROUTE(app, "/redfish/v1/Chassis/<str>/") |
Ed Tanous | ed39821 | 2021-06-09 17:05:54 -0700 | [diff] [blame] | 248 | .privileges(redfish::privileges::getChassis) |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 249 | .methods( |
| 250 | boost::beast::http::verb::get)([](const crow::Request&, |
| 251 | const std::shared_ptr< |
| 252 | bmcweb::AsyncResp>& asyncResp, |
| 253 | const std::string& chassisId) { |
| 254 | const std::array<const char*, 2> interfaces = { |
| 255 | "xyz.openbmc_project.Inventory.Item.Board", |
| 256 | "xyz.openbmc_project.Inventory.Item.Chassis"}; |
Rapkiewicz, Pawel | e37f845 | 2018-03-09 13:49:50 +0100 | [diff] [blame] | 257 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 258 | crow::connections::systemBus->async_method_call( |
| 259 | [asyncResp, chassisId(std::string(chassisId))]( |
| 260 | const boost::system::error_code ec, |
| 261 | const crow::openbmc_mapper::GetSubTreeType& subtree) { |
| 262 | if (ec) |
Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 263 | { |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 264 | messages::internalError(asyncResp->res); |
| 265 | return; |
Ed Tanous | daf36e2 | 2018-04-20 16:01:36 -0700 | [diff] [blame] | 266 | } |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 267 | // Iterate over all retrieved ObjectPaths. |
| 268 | for (const std::pair< |
| 269 | std::string, |
| 270 | std::vector<std::pair<std::string, |
| 271 | std::vector<std::string>>>>& |
| 272 | object : subtree) |
Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 273 | { |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 274 | const std::string& path = object.first; |
| 275 | const std::vector< |
| 276 | std::pair<std::string, std::vector<std::string>>>& |
| 277 | connectionNames = object.second; |
Ed Tanous | e0d918b | 2018-03-27 17:41:04 -0700 | [diff] [blame] | 278 | |
George Liu | 997093e | 2021-11-17 17:43:45 +0800 | [diff] [blame] | 279 | sdbusplus::message::object_path objPath(path); |
| 280 | if (objPath.filename() != chassisId) |
James Feist | 1c8fba9 | 2019-12-20 15:12:07 -0800 | [diff] [blame] | 281 | { |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 282 | continue; |
James Feist | 1c8fba9 | 2019-12-20 15:12:07 -0800 | [diff] [blame] | 283 | } |
James Feist | 1c8fba9 | 2019-12-20 15:12:07 -0800 | [diff] [blame] | 284 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 285 | auto health = |
| 286 | std::make_shared<HealthPopulate>(asyncResp); |
| 287 | |
| 288 | crow::connections::systemBus->async_method_call( |
| 289 | [health]( |
| 290 | const boost::system::error_code ec2, |
| 291 | std::variant<std::vector<std::string>>& resp) { |
| 292 | if (ec2) |
| 293 | { |
| 294 | return; // no sensors = no failures |
| 295 | } |
| 296 | std::vector<std::string>* data = |
| 297 | std::get_if<std::vector<std::string>>( |
| 298 | &resp); |
| 299 | if (data == nullptr) |
| 300 | { |
| 301 | return; |
| 302 | } |
| 303 | health->inventory = std::move(*data); |
| 304 | }, |
| 305 | "xyz.openbmc_project.ObjectMapper", |
| 306 | path + "/all_sensors", |
| 307 | "org.freedesktop.DBus.Properties", "Get", |
| 308 | "xyz.openbmc_project.Association", "endpoints"); |
| 309 | |
| 310 | health->populate(); |
| 311 | |
| 312 | if (connectionNames.size() < 1) |
| 313 | { |
| 314 | BMCWEB_LOG_ERROR << "Got 0 Connection names"; |
| 315 | continue; |
| 316 | } |
| 317 | |
| 318 | asyncResp->res.jsonValue["@odata.type"] = |
| 319 | "#Chassis.v1_14_0.Chassis"; |
| 320 | asyncResp->res.jsonValue["@odata.id"] = |
| 321 | "/redfish/v1/Chassis/" + chassisId; |
| 322 | asyncResp->res.jsonValue["Name"] = "Chassis Collection"; |
| 323 | asyncResp->res.jsonValue["ChassisType"] = "RackMount"; |
| 324 | asyncResp->res.jsonValue["Actions"]["#Chassis.Reset"] = |
| 325 | {{"target", "/redfish/v1/Chassis/" + chassisId + |
| 326 | "/Actions/Chassis.Reset"}, |
| 327 | {"@Redfish.ActionInfo", "/redfish/v1/Chassis/" + |
| 328 | chassisId + |
| 329 | "/ResetActionInfo"}}; |
| 330 | asyncResp->res.jsonValue["PCIeDevices"] = { |
| 331 | {"@odata.id", |
| 332 | "/redfish/v1/Systems/system/PCIeDevices"}}; |
| 333 | |
| 334 | const std::string& connectionName = |
| 335 | connectionNames[0].first; |
| 336 | |
| 337 | const std::vector<std::string>& interfaces2 = |
| 338 | connectionNames[0].second; |
| 339 | const std::array<const char*, 2> hasIndicatorLed = { |
| 340 | "xyz.openbmc_project.Inventory.Item.Panel", |
| 341 | "xyz.openbmc_project.Inventory.Item.Board." |
| 342 | "Motherboard"}; |
| 343 | |
Tejas Patil | 476b9cc | 2021-06-04 17:09:14 +0530 | [diff] [blame] | 344 | const std::string assetTagInterface = |
| 345 | "xyz.openbmc_project.Inventory.Decorator." |
| 346 | "AssetTag"; |
| 347 | if (std::find(interfaces2.begin(), interfaces2.end(), |
| 348 | assetTagInterface) != interfaces2.end()) |
| 349 | { |
| 350 | crow::connections::systemBus->async_method_call( |
| 351 | [asyncResp, chassisId(std::string(chassisId))]( |
| 352 | const boost::system::error_code ec, |
| 353 | const std::variant<std::string>& property) { |
| 354 | if (ec) |
| 355 | { |
| 356 | BMCWEB_LOG_DEBUG |
| 357 | << "DBus response error for " |
| 358 | "AssetTag"; |
| 359 | messages::internalError(asyncResp->res); |
| 360 | return; |
| 361 | } |
| 362 | |
| 363 | const std::string* assetTag = |
| 364 | std::get_if<std::string>(&property); |
| 365 | if (assetTag == nullptr) |
| 366 | { |
| 367 | BMCWEB_LOG_DEBUG |
| 368 | << "Null value returned " |
| 369 | "for Chassis AssetTag"; |
| 370 | messages::internalError(asyncResp->res); |
| 371 | return; |
| 372 | } |
| 373 | asyncResp->res.jsonValue["AssetTag"] = |
| 374 | *assetTag; |
| 375 | }, |
| 376 | connectionName, path, |
| 377 | "org.freedesktop.DBus.Properties", "Get", |
| 378 | assetTagInterface, "AssetTag"); |
| 379 | } |
| 380 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 381 | for (const char* interface : hasIndicatorLed) |
| 382 | { |
| 383 | if (std::find(interfaces2.begin(), |
| 384 | interfaces2.end(), |
| 385 | interface) != interfaces2.end()) |
| 386 | { |
| 387 | getIndicatorLedState(asyncResp); |
| 388 | getLocationIndicatorActive(asyncResp); |
| 389 | break; |
| 390 | } |
| 391 | } |
| 392 | |
SunnySrivastava1984 | 88ad7f0 | 2020-12-03 10:27:52 -0600 | [diff] [blame] | 393 | crow::connections::systemBus->async_method_call( |
| 394 | [asyncResp, chassisId(std::string(chassisId))]( |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 395 | const boost::system::error_code /*ec2*/, |
| 396 | const std::vector< |
| 397 | std::pair<std::string, VariantType>>& |
| 398 | propertiesList) { |
| 399 | for (const std::pair<std::string, VariantType>& |
| 400 | property : propertiesList) |
SunnySrivastava1984 | 88ad7f0 | 2020-12-03 10:27:52 -0600 | [diff] [blame] | 401 | { |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 402 | // Store DBus properties that are also |
| 403 | // Redfish properties with same name and a |
| 404 | // string value |
| 405 | const std::string& propertyName = |
| 406 | property.first; |
| 407 | if ((propertyName == "PartNumber") || |
| 408 | (propertyName == "SerialNumber") || |
| 409 | (propertyName == "Manufacturer") || |
| 410 | (propertyName == "Model")) |
Shawn McCarney | 99cffd7 | 2019-03-01 10:46:20 -0600 | [diff] [blame] | 411 | { |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 412 | const std::string* value = |
| 413 | std::get_if<std::string>( |
| 414 | &property.second); |
| 415 | if (value != nullptr) |
| 416 | { |
| 417 | asyncResp->res |
| 418 | .jsonValue[propertyName] = |
| 419 | *value; |
| 420 | } |
Shawn McCarney | 99cffd7 | 2019-03-01 10:46:20 -0600 | [diff] [blame] | 421 | } |
Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 422 | } |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 423 | asyncResp->res.jsonValue["Name"] = chassisId; |
| 424 | asyncResp->res.jsonValue["Id"] = chassisId; |
zhanghch05 | 0256b69 | 2021-06-12 10:26:52 +0800 | [diff] [blame] | 425 | #ifdef BMCWEB_ALLOW_DEPRECATED_POWER_THERMAL |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 426 | asyncResp->res.jsonValue["Thermal"] = { |
| 427 | {"@odata.id", "/redfish/v1/Chassis/" + |
| 428 | chassisId + "/Thermal"}}; |
| 429 | // Power object |
| 430 | asyncResp->res.jsonValue["Power"] = { |
| 431 | {"@odata.id", "/redfish/v1/Chassis/" + |
| 432 | chassisId + "/Power"}}; |
zhanghch05 | 0256b69 | 2021-06-12 10:26:52 +0800 | [diff] [blame] | 433 | #endif |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 434 | // SensorCollection |
| 435 | asyncResp->res.jsonValue["Sensors"] = { |
| 436 | {"@odata.id", "/redfish/v1/Chassis/" + |
| 437 | chassisId + "/Sensors"}}; |
| 438 | asyncResp->res.jsonValue["Status"] = { |
| 439 | {"State", "Enabled"}, |
| 440 | }; |
| 441 | |
| 442 | asyncResp->res |
| 443 | .jsonValue["Links"]["ComputerSystems"] = { |
| 444 | {{"@odata.id", |
| 445 | "/redfish/v1/Systems/system"}}}; |
| 446 | asyncResp->res.jsonValue["Links"]["ManagedBy"] = |
| 447 | {{{"@odata.id", |
| 448 | "/redfish/v1/Managers/bmc"}}}; |
| 449 | getChassisState(asyncResp); |
| 450 | }, |
| 451 | connectionName, path, |
| 452 | "org.freedesktop.DBus.Properties", "GetAll", |
| 453 | "xyz.openbmc_project.Inventory.Decorator.Asset"); |
Sharad Yadav | 2c37b4b | 2021-05-10 12:53:38 +0530 | [diff] [blame] | 454 | |
Willy Tu | 308f70c | 2021-09-28 20:24:52 -0700 | [diff] [blame] | 455 | for (const auto& interface : interfaces2) |
Sharad Yadav | 2c37b4b | 2021-05-10 12:53:38 +0530 | [diff] [blame] | 456 | { |
Willy Tu | 308f70c | 2021-09-28 20:24:52 -0700 | [diff] [blame] | 457 | if (interface == "xyz.openbmc_project.Common.UUID") |
| 458 | { |
| 459 | getChassisUUID(asyncResp, connectionName, path); |
| 460 | } |
| 461 | else if (interface == |
| 462 | "xyz.openbmc_project.Inventory." |
| 463 | "Decorator.LocationCode") |
| 464 | { |
| 465 | getChassisLocationCode(asyncResp, |
| 466 | connectionName, path); |
| 467 | } |
Sharad Yadav | 2c37b4b | 2021-05-10 12:53:38 +0530 | [diff] [blame] | 468 | } |
| 469 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 470 | return; |
| 471 | } |
| 472 | |
| 473 | // Couldn't find an object with that name. return an error |
| 474 | messages::resourceNotFound( |
| 475 | asyncResp->res, "#Chassis.v1_14_0.Chassis", chassisId); |
| 476 | }, |
| 477 | "xyz.openbmc_project.ObjectMapper", |
| 478 | "/xyz/openbmc_project/object_mapper", |
| 479 | "xyz.openbmc_project.ObjectMapper", "GetSubTree", |
| 480 | "/xyz/openbmc_project/inventory", 0, interfaces); |
| 481 | |
| 482 | getPhysicalSecurityData(asyncResp); |
| 483 | }); |
| 484 | |
| 485 | BMCWEB_ROUTE(app, "/redfish/v1/Chassis/<str>/") |
Ed Tanous | ed39821 | 2021-06-09 17:05:54 -0700 | [diff] [blame] | 486 | .privileges(redfish::privileges::patchChassis) |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 487 | .methods( |
| 488 | boost::beast::http::verb:: |
| 489 | patch)([](const crow::Request& req, |
| 490 | const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, |
| 491 | const std::string& param) { |
| 492 | std::optional<bool> locationIndicatorActive; |
| 493 | std::optional<std::string> indicatorLed; |
| 494 | |
| 495 | if (param.empty()) |
| 496 | { |
| 497 | return; |
| 498 | } |
| 499 | |
| 500 | if (!json_util::readJson( |
| 501 | req, asyncResp->res, "LocationIndicatorActive", |
| 502 | locationIndicatorActive, "IndicatorLED", indicatorLed)) |
| 503 | { |
| 504 | return; |
| 505 | } |
| 506 | |
| 507 | // TODO (Gunnar): Remove IndicatorLED after enough time has passed |
| 508 | if (!locationIndicatorActive && !indicatorLed) |
| 509 | { |
| 510 | return; // delete this when we support more patch properties |
| 511 | } |
| 512 | if (indicatorLed) |
| 513 | { |
| 514 | asyncResp->res.addHeader( |
| 515 | boost::beast::http::field::warning, |
| 516 | "299 - \"IndicatorLED is deprecated. Use " |
| 517 | "LocationIndicatorActive instead.\""); |
| 518 | } |
| 519 | |
| 520 | const std::array<const char*, 2> interfaces = { |
| 521 | "xyz.openbmc_project.Inventory.Item.Board", |
| 522 | "xyz.openbmc_project.Inventory.Item.Chassis"}; |
| 523 | |
| 524 | const std::string& chassisId = param; |
| 525 | |
| 526 | crow::connections::systemBus->async_method_call( |
| 527 | [asyncResp, chassisId, locationIndicatorActive, indicatorLed]( |
| 528 | const boost::system::error_code ec, |
| 529 | const crow::openbmc_mapper::GetSubTreeType& subtree) { |
| 530 | if (ec) |
| 531 | { |
| 532 | messages::internalError(asyncResp->res); |
| 533 | return; |
| 534 | } |
| 535 | |
| 536 | // Iterate over all retrieved ObjectPaths. |
| 537 | for (const std::pair< |
| 538 | std::string, |
| 539 | std::vector<std::pair<std::string, |
| 540 | std::vector<std::string>>>>& |
| 541 | object : subtree) |
| 542 | { |
| 543 | const std::string& path = object.first; |
| 544 | const std::vector< |
| 545 | std::pair<std::string, std::vector<std::string>>>& |
| 546 | connectionNames = object.second; |
| 547 | |
George Liu | 997093e | 2021-11-17 17:43:45 +0800 | [diff] [blame] | 548 | sdbusplus::message::object_path objPath(path); |
| 549 | if (objPath.filename() != chassisId) |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 550 | { |
| 551 | continue; |
| 552 | } |
| 553 | |
| 554 | if (connectionNames.size() < 1) |
| 555 | { |
| 556 | BMCWEB_LOG_ERROR << "Got 0 Connection names"; |
| 557 | continue; |
| 558 | } |
| 559 | |
| 560 | const std::vector<std::string>& interfaces3 = |
| 561 | connectionNames[0].second; |
| 562 | |
| 563 | const std::array<const char*, 2> hasIndicatorLed = { |
| 564 | "xyz.openbmc_project.Inventory.Item.Panel", |
| 565 | "xyz.openbmc_project.Inventory.Item.Board." |
| 566 | "Motherboard"}; |
| 567 | bool indicatorChassis = false; |
| 568 | for (const char* interface : hasIndicatorLed) |
| 569 | { |
| 570 | if (std::find(interfaces3.begin(), |
| 571 | interfaces3.end(), |
| 572 | interface) != interfaces3.end()) |
| 573 | { |
| 574 | indicatorChassis = true; |
| 575 | break; |
Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 576 | } |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 577 | } |
| 578 | if (locationIndicatorActive) |
| 579 | { |
| 580 | if (indicatorChassis) |
| 581 | { |
| 582 | setLocationIndicatorActive( |
| 583 | asyncResp, *locationIndicatorActive); |
| 584 | } |
| 585 | else |
| 586 | { |
| 587 | messages::propertyUnknown( |
| 588 | asyncResp->res, "LocationIndicatorActive"); |
| 589 | } |
| 590 | } |
| 591 | if (indicatorLed) |
| 592 | { |
| 593 | if (indicatorChassis) |
| 594 | { |
| 595 | setIndicatorLedState(asyncResp, *indicatorLed); |
| 596 | } |
| 597 | else |
| 598 | { |
| 599 | messages::propertyUnknown(asyncResp->res, |
| 600 | "IndicatorLED"); |
| 601 | } |
| 602 | } |
| 603 | return; |
James Feist | 1c8fba9 | 2019-12-20 15:12:07 -0800 | [diff] [blame] | 604 | } |
| 605 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 606 | messages::resourceNotFound( |
| 607 | asyncResp->res, "#Chassis.v1_14_0.Chassis", chassisId); |
| 608 | }, |
| 609 | "xyz.openbmc_project.ObjectMapper", |
| 610 | "/xyz/openbmc_project/object_mapper", |
| 611 | "xyz.openbmc_project.ObjectMapper", "GetSubTree", |
| 612 | "/xyz/openbmc_project/inventory", 0, interfaces); |
| 613 | }); |
| 614 | } |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 615 | |
zhanghch05 | 8d1b46d | 2021-04-01 11:18:24 +0800 | [diff] [blame] | 616 | inline void |
| 617 | doChassisPowerCycle(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 618 | { |
Vijay Khemka | c3b3c92 | 2020-09-22 23:00:12 -0700 | [diff] [blame] | 619 | const char* busName = "xyz.openbmc_project.ObjectMapper"; |
| 620 | const char* path = "/xyz/openbmc_project/object_mapper"; |
| 621 | const char* interface = "xyz.openbmc_project.ObjectMapper"; |
| 622 | const char* method = "GetSubTreePaths"; |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 623 | |
Vijay Khemka | c3b3c92 | 2020-09-22 23:00:12 -0700 | [diff] [blame] | 624 | const std::array<const char*, 1> interfaces = { |
| 625 | "xyz.openbmc_project.State.Chassis"}; |
| 626 | |
| 627 | // Use mapper to get subtree paths. |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 628 | crow::connections::systemBus->async_method_call( |
Vijay Khemka | c3b3c92 | 2020-09-22 23:00:12 -0700 | [diff] [blame] | 629 | [asyncResp](const boost::system::error_code ec, |
| 630 | const std::vector<std::string>& chassisList) { |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 631 | if (ec) |
| 632 | { |
Vijay Khemka | c3b3c92 | 2020-09-22 23:00:12 -0700 | [diff] [blame] | 633 | BMCWEB_LOG_DEBUG << "[mapper] Bad D-Bus request error: " << ec; |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 634 | messages::internalError(asyncResp->res); |
| 635 | return; |
| 636 | } |
| 637 | |
Vijay Khemka | c3b3c92 | 2020-09-22 23:00:12 -0700 | [diff] [blame] | 638 | const char* processName = "xyz.openbmc_project.State.Chassis"; |
| 639 | const char* interfaceName = "xyz.openbmc_project.State.Chassis"; |
| 640 | const char* destProperty = "RequestedPowerTransition"; |
| 641 | const std::string propertyValue = |
| 642 | "xyz.openbmc_project.State.Chassis.Transition.PowerCycle"; |
| 643 | std::string objectPath = |
| 644 | "/xyz/openbmc_project/state/chassis_system0"; |
| 645 | |
| 646 | /* Look for system reset chassis path */ |
| 647 | if ((std::find(chassisList.begin(), chassisList.end(), |
| 648 | objectPath)) == chassisList.end()) |
| 649 | { |
| 650 | /* We prefer to reset the full chassis_system, but if it doesn't |
| 651 | * exist on some platforms, fall back to a host-only power reset |
| 652 | */ |
| 653 | objectPath = "/xyz/openbmc_project/state/chassis0"; |
| 654 | } |
| 655 | |
| 656 | crow::connections::systemBus->async_method_call( |
| 657 | [asyncResp](const boost::system::error_code ec) { |
| 658 | // Use "Set" method to set the property value. |
| 659 | if (ec) |
| 660 | { |
| 661 | BMCWEB_LOG_DEBUG << "[Set] Bad D-Bus request error: " |
| 662 | << ec; |
| 663 | messages::internalError(asyncResp->res); |
| 664 | return; |
| 665 | } |
| 666 | |
| 667 | messages::success(asyncResp->res); |
| 668 | }, |
| 669 | processName, objectPath, "org.freedesktop.DBus.Properties", |
| 670 | "Set", interfaceName, destProperty, |
| 671 | std::variant<std::string>{propertyValue}); |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 672 | }, |
Vijay Khemka | c3b3c92 | 2020-09-22 23:00:12 -0700 | [diff] [blame] | 673 | busName, path, interface, method, "/", 0, interfaces); |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 674 | } |
| 675 | |
| 676 | /** |
| 677 | * ChassisResetAction class supports the POST method for the Reset |
| 678 | * action. |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 679 | * Function handles POST method request. |
| 680 | * Analyzes POST body before sending Reset request data to D-Bus. |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 681 | */ |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 682 | |
| 683 | inline void requestRoutesChassisResetAction(App& app) |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 684 | { |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 685 | BMCWEB_ROUTE(app, "/redfish/v1/Chassis/<str>/Actions/Chassis.Reset/") |
Ed Tanous | ed39821 | 2021-06-09 17:05:54 -0700 | [diff] [blame] | 686 | .privileges(redfish::privileges::postChassis) |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 687 | .methods(boost::beast::http::verb::post)( |
| 688 | [](const crow::Request& req, |
| 689 | const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, |
| 690 | const std::string&) { |
| 691 | BMCWEB_LOG_DEBUG << "Post Chassis Reset."; |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 692 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 693 | std::string resetType; |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 694 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 695 | if (!json_util::readJson(req, asyncResp->res, "ResetType", |
| 696 | resetType)) |
| 697 | { |
| 698 | return; |
| 699 | } |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 700 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 701 | if (resetType != "PowerCycle") |
| 702 | { |
| 703 | BMCWEB_LOG_DEBUG << "Invalid property value for ResetType: " |
| 704 | << resetType; |
| 705 | messages::actionParameterNotSupported( |
| 706 | asyncResp->res, resetType, "ResetType"); |
P.K. Lee | dd99e04 | 2020-06-17 19:43:16 +0800 | [diff] [blame] | 707 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 708 | return; |
| 709 | } |
| 710 | doChassisPowerCycle(asyncResp); |
| 711 | }); |
| 712 | } |
AppaRao Puli | 1cb1a9e | 2020-07-17 23:38:57 +0530 | [diff] [blame] | 713 | |
| 714 | /** |
| 715 | * ChassisResetActionInfo derived class for delivering Chassis |
| 716 | * ResetType AllowableValues using ResetInfo schema. |
| 717 | */ |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 718 | inline void requestRoutesChassisResetActionInfo(App& app) |
AppaRao Puli | 1cb1a9e | 2020-07-17 23:38:57 +0530 | [diff] [blame] | 719 | { |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 720 | BMCWEB_ROUTE(app, "/redfish/v1/Chassis/<str>/ResetActionInfo/") |
Ed Tanous | ed39821 | 2021-06-09 17:05:54 -0700 | [diff] [blame] | 721 | .privileges(redfish::privileges::getActionInfo) |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 722 | .methods(boost::beast::http::verb::get)( |
| 723 | [](const crow::Request&, |
| 724 | const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, |
| 725 | const std::string& chassisId) |
AppaRao Puli | 1cb1a9e | 2020-07-17 23:38:57 +0530 | [diff] [blame] | 726 | |
John Edward Broadbent | 7e860f1 | 2021-04-08 15:57:16 -0700 | [diff] [blame] | 727 | { |
| 728 | asyncResp->res.jsonValue = { |
| 729 | {"@odata.type", "#ActionInfo.v1_1_2.ActionInfo"}, |
| 730 | {"@odata.id", |
| 731 | "/redfish/v1/Chassis/" + chassisId + "/ResetActionInfo"}, |
| 732 | {"Name", "Reset Action Info"}, |
| 733 | {"Id", "ResetActionInfo"}, |
| 734 | {"Parameters", |
| 735 | {{{"Name", "ResetType"}, |
| 736 | {"Required", true}, |
| 737 | {"DataType", "String"}, |
| 738 | {"AllowableValues", {"PowerCycle"}}}}}}; |
| 739 | }); |
| 740 | } |
AppaRao Puli | 1cb1a9e | 2020-07-17 23:38:57 +0530 | [diff] [blame] | 741 | |
Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 742 | } // namespace redfish |