summaryrefslogtreecommitdiff
path: root/meta-ibs/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-net/0001-Modify-dbus-namespace-of-chassis-control-for-guid.patch
blob: 6eb2325d6fbd0f70da4aab79e3756df3409dca44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From da59ce9f701167120dc4a3fbef63d0cc4b8e988e Mon Sep 17 00:00:00 2001
From: Kuiying Wang <kuiying.wang@intel.com>
Date: Mon, 2 Jul 2018 15:51:52 +0800
Subject: [PATCH 1/2] Modify dbus namespace of chassis control for guid.cpp
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Switch chassis control service namespace for guid.cpp from “org” to “xyz”,
to compatible with new intel-chassis services

Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
Signed-off-by: Andrey V.Kosteltsev <AKosteltsev@IBS.RU>
---
 command/guid.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/command/guid.cpp b/command/guid.cpp
index c69f825..53a9c21 100644
--- a/command/guid.cpp
+++ b/command/guid.cpp
@@ -21,7 +21,8 @@ namespace command
 
 std::unique_ptr<sdbusplus::bus::match_t> matchPtr(nullptr);
 
-static constexpr auto guidObjPath = "/org/openbmc/control/chassis0";
+static constexpr auto guidObjPath =
+    "/xyz/openbmc_project/Chassis/Control/Chassis0";
 static constexpr auto propInterface = "org.freedesktop.DBus.Properties";
 
 Guid getSystemGUID()
@@ -31,7 +32,7 @@ Guid getSystemGUID()
     Guid guid = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
                  0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10};
 
-    constexpr auto chassisIntf = "org.openbmc.control.Chassis";
+    constexpr auto chassisIntf = "xyz.openbmc_project.Chassis.Control.Chassis";
 
     sd_bus_message* reply = nullptr;
     sd_bus_error error = SD_BUS_ERROR_NULL;
-- 
2.35.1