diff options
author | Joshi-Mansi <mansi.joshi@linux.intel.com> | 2020-03-13 23:38:19 +0300 |
---|---|---|
committer | mansi.joshi <mansi.joshi@linux.intel.com> | 2020-03-19 16:33:19 +0300 |
commit | 5a64a6f309f118aa445e501f7c971b89639dfebc (patch) | |
tree | a14e9cb77c5263655e5d056b73f4556607b51ef5 /redfish-core | |
parent | a3316fc6f1684d38a2d2ccf227751a64a9cd719b (diff) | |
download | bmcweb-5a64a6f309f118aa445e501f7c971b89639dfebc.tar.xz |
[Redfish] Making LimitException OCP Compliant
Setting PowerLimit.LimitException Attribute value to "NoAction" in Power
Schema as its default value to make it OCP compliant.
Tested:
1. Tested using GET:
- https://bmc-ip/redfish/v1/Chassis/Baseboard/Power
"PowerLimit": {
"LimitException": "NoAction"
}
2. Ran the Redfish validator and no new issues found.
Signed-off-by: Joshi-Mansi <mansi.joshi@linux.intel.com>
Change-Id: Ie8768ba250d29d23b791fcd60d749ab6081238b2
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/lib/power.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/redfish-core/lib/power.hpp b/redfish-core/lib/power.hpp index 5a62400fd4..37a22da2a6 100644 --- a/redfish-core/lib/power.hpp +++ b/redfish-core/lib/power.hpp @@ -304,6 +304,11 @@ class Power : public Node nlohmann::json& value = sensorJson["PowerLimit"]["LimitInWatts"]; + // LimitException is Mandatory attribute as per OCP Baseline + // Profile – v1.0.0, so currently making it "NoAction" + // as default value to make it OCP Compliant. + sensorJson["PowerLimit"]["LimitException"] = "NoAction"; + if (enabled) { // Redfish specification indicates PowerLimit should be |