summaryrefslogtreecommitdiff
path: root/redfish-core/lib
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2021-09-27 19:07:55 +0300
committerEd Tanous <edtanous@google.com>2021-09-27 21:22:24 +0300
commit36ea1cefb542a70be3e567c4b256e7b103c70b2a (patch)
treee751b1c9a1a9660f6a772b7d3d4ed0c2abdba2fd /redfish-core/lib
parent3e8c7dfce4869711e22ccc76c90cebb55984d36c (diff)
downloadbmcweb-36ea1cefb542a70be3e567c4b256e7b103c70b2a.tar.xz
Revert "PCIe: Implement "PcieType" PCIe device property"
This reverts commit 3e8c7dfce4869711e22ccc76c90cebb55984d36c. As pointed out in the review. The patchset doesn't implement the latest phosphor-dbus-interfaces interface. It was a mistake to merged it. To the submitter, please resubmit it once we have the right interface sorted out, and we'll be able to get this in. Change-Id: Id433b354cbebc11f12c49bcd965e931e72075008 Signed-off-by: Ed Tanous <edtanous@google.com>
Diffstat (limited to 'redfish-core/lib')
-rw-r--r--redfish-core/lib/pcie.hpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp
index 79d9c1e36e..e53443404f 100644
--- a/redfish-core/lib/pcie.hpp
+++ b/redfish-core/lib/pcie.hpp
@@ -94,38 +94,6 @@ inline void requestRoutesSystemPCIeDeviceCollection(App& app)
});
}
-inline std::string analysisGeneration(const std::string& pcieType)
-{
- if (pcieType ==
- "xyz.openbmc_project.Inventory.Item.PCIeSlot.Generations.Gen1")
- {
- return "Gen1";
- }
- if (pcieType ==
- "xyz.openbmc_project.Inventory.Item.PCIeSlot.Generations.Gen2")
- {
- return "Gen2";
- }
- if (pcieType ==
- "xyz.openbmc_project.Inventory.Item.PCIeSlot.Generations.Gen3")
- {
- return "Gen3";
- }
- if (pcieType ==
- "xyz.openbmc_project.Inventory.Item.PCIeSlot.Generations.Gen4")
- {
- return "Gen4";
- }
- if (pcieType ==
- "xyz.openbmc_project.Inventory.Item.PCIeSlot.Generations.Gen5")
- {
- return "Gen5";
- }
-
- // Unknown or others
- return "";
-}
-
inline void requestRoutesSystemPCIeDevice(App& app)
{
BMCWEB_ROUTE(app, "/redfish/v1/Systems/system/PCIeDevices/<str>/")
@@ -182,19 +150,6 @@ inline void requestRoutesSystemPCIeDevice(App& app)
asyncResp->res.jsonValue["DeviceType"] = *property;
}
- if (std::string* property = std::get_if<std::string>(
- &pcieDevProperties["PcieType"]);
- property)
- {
- std::string pcieType = analysisGeneration(*property);
- if (!pcieType.empty())
- {
- asyncResp->res
- .jsonValue["PCIeInterface"]["PcieType"] =
- pcieType;
- }
- }
-
asyncResp->res.jsonValue["PCIeFunctions"] = {
{"@odata.id",
"/redfish/v1/Systems/system/PCIeDevices/" + device +