summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0034-Add-username-property-to-SessionInfo-interface.patch
blob: f614f88c6fe638a3f9c589b19c26dc80e06892b2 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From ee72d92baf3d64d066e0ec64cbd8723177219182 Mon Sep 17 00:00:00 2001
From: Jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Date: Tue, 1 Jun 2021 12:27:50 +0000
Subject: [PATCH] Add username property to SessionInfo interface

Add username property to SessionInfo interface to get username info on
individual IPMI session Id's on Redfish

Tested:
Verified on SessionInfo D-bus interface.

busctl introspect xyz.openbmc_project.Ipmi.Channel.eth0
                  /xyz/openbmc_project/ipmi/session/eth0/0
NAME               TYPE      SIGNATURE RESULT/VALUE FLAGS
......
xyz.openbmc_project.Ipmi.SessionInfo interface -         -            -
.ChannelNum        property  y      0            emits-change writable
.CurrentPrivilege  property  y      0            emits-change writable
.RemoteIPAddr      property  u      2225389066   emits-change writable
.RemoteMACAddress  property  ay     0            emits-change writable
.RemotePort        property  q      35749        emits-change writable
.SessionHandle     property  y      0            emits-change writable
.State             property  y      0            emits-change writable
.UserID            property  y      0            emits-change writable
.Username          property  s      ""           emits-change writable

Signed-off-by: Jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
---
 yaml/xyz/openbmc_project/Ipmi/SESSION_README.md          | 1 +
 yaml/xyz/openbmc_project/Ipmi/SessionInfo.interface.yaml | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/yaml/xyz/openbmc_project/Ipmi/SESSION_README.md b/yaml/xyz/openbmc_project/Ipmi/SESSION_README.md
index c59b251bb88d..ed41c3bf181d 100644
--- a/yaml/xyz/openbmc_project/Ipmi/SESSION_README.md
+++ b/yaml/xyz/openbmc_project/Ipmi/SESSION_README.md
@@ -16,6 +16,7 @@ so that both phosphor-ipmi-host & phosphr-ipmi-net will be in sync.
 * RemotePort   - Remote port address.
 * RemoteMACAddress -Remote MAC Address.
 * UserID  - Session created by given user id.
+* Username - Session created by given username.
 
 
 
diff --git a/yaml/xyz/openbmc_project/Ipmi/SessionInfo.interface.yaml b/yaml/xyz/openbmc_project/Ipmi/SessionInfo.interface.yaml
index 0ddc0250db50..50aff5c26072 100644
--- a/yaml/xyz/openbmc_project/Ipmi/SessionInfo.interface.yaml
+++ b/yaml/xyz/openbmc_project/Ipmi/SessionInfo.interface.yaml
@@ -46,6 +46,12 @@ properties:
            Session created by given user ID.
       errors:
           - xyz.openbmc_project.Common.Error.InternalFailure
+    - name: Username
+      type: string
+      description: >
+           Session created by given username.
+      errors:
+          - xyz.openbmc_project.Common.Error.InternalFailure
     - name: State
       type: byte
       default: 0
-- 
2.17.1