summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0010-managers-add-attributes-for-Manager.CommandShell.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0010-managers-add-attributes-for-Manager.CommandShell.patch')
-rw-r--r--meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0010-managers-add-attributes-for-Manager.CommandShell.patch36
1 files changed, 23 insertions, 13 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0010-managers-add-attributes-for-Manager.CommandShell.patch b/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0010-managers-add-attributes-for-Manager.CommandShell.patch
index a9c46f487..d962d3872 100644
--- a/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0010-managers-add-attributes-for-Manager.CommandShell.patch
+++ b/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0010-managers-add-attributes-for-Manager.CommandShell.patch
@@ -1,4 +1,4 @@
-From a76314cd29f5cbcf19142b7120c5bf83358910fd Mon Sep 17 00:00:00 2001
+From b5e4edfc26eec245427d3435de9acaa9363ae836 Mon Sep 17 00:00:00 2001
From: Jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Date: Mon, 28 Dec 2020 18:55:57 +0000
Subject: [PATCH] managers: add attributes for Manager.CommandShell
@@ -32,26 +32,36 @@ Response:
Signed-off-by: Jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
---
- redfish-core/lib/managers.hpp | 6 ++++++
- 1 file changed, 6 insertions(+)
+ redfish-core/lib/managers.hpp | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/redfish-core/lib/managers.hpp b/redfish-core/lib/managers.hpp
-index 6347caf..c401ca9 100644
+index 67f8d99..dcbc347 100644
--- a/redfish-core/lib/managers.hpp
+++ b/redfish-core/lib/managers.hpp
-@@ -1767,6 +1767,12 @@ class Manager : public Node
- res.jsonValue["SerialConsole"]["MaxConcurrentSessions"] = 15;
- res.jsonValue["SerialConsole"]["ConnectTypesSupported"] = {"IPMI",
- "SSH"};
+@@ -1830,6 +1830,13 @@ class Manager : public Node
+ asyncResp->res.jsonValue["SerialConsole"]["MaxConcurrentSessions"] = 15;
+ asyncResp->res.jsonValue["SerialConsole"]["ConnectTypesSupported"] = {
+ "IPMI", "SSH"};
++
+ // Fill in CommandShell info
-+ res.jsonValue["CommandShell"]["ServiceEnabled"] = true;
-+ res.jsonValue["CommandShell"]["MaxConcurrentSessions"] = 4;
-+ res.jsonValue["CommandShell"]["ConnectTypesSupported"] = {"SSH",
-+ "IPMI"};
++ asyncResp->res.jsonValue["CommandShell"]["ServiceEnabled"] = true;
++ asyncResp->res.jsonValue["CommandShell"]["MaxConcurrentSessions"] = 4;
++ asyncResp->res.jsonValue["CommandShell"]["ConnectTypesSupported"] = {
++ "SSH", "IPMI"};
+
#ifdef BMCWEB_ENABLE_KVM
// Fill in GraphicalConsole info
- res.jsonValue["GraphicalConsole"]["ServiceEnabled"] = true;
+ asyncResp->res.jsonValue["GraphicalConsole"]["ServiceEnabled"] = true;
+@@ -2272,7 +2279,7 @@ class Manager : public Node
+ }
+
+ std::string uuid;
+-};
++}; // namespace redfish
+
+ class ManagerCollection : public Node
+ {
--
2.17.1