summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries
diff options
context:
space:
mode:
authorAppaRao Puli <apparao.puli@linux.intel.com>2020-09-07 23:23:21 +0300
committerAppaRao Puli <apparao.puli@linux.intel.com>2020-09-09 05:18:54 +0300
commitdd28ba829972906cbe2d372cf4ec00fdf82fbb83 (patch)
tree155f77b8c23b4bedc3a326cd01a765c286ad907b /redfish-core/include/registries
parent029cc1f4106968f7e871d17a8bcb71a303a12ffa (diff)
downloadbmcweb-dd28ba829972906cbe2d372cf4ec00fdf82fbb83.tar.xz
Add MutualExclusiveProperties registry
Add MutualExclusiveProperties message registry entry and error message. As per redfish specification, "RegistryPrefixes" and "MessageIds" are mutually exclusive. So add check for same in EventService and return MutualExclusiveProperties error message. Tested: - Create subscription failed with error(bad request) when the request body contain both "RegistryPrefixes" and "MessageIds". Change-Id: I4c14f946977bce2ced8a7f96eb85855117fde9a8 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
Diffstat (limited to 'redfish-core/include/registries')
-rw-r--r--redfish-core/include/registries/base_message_registry.hpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/redfish-core/include/registries/base_message_registry.hpp b/redfish-core/include/registries/base_message_registry.hpp
index 90aef5613a..7c385a0023 100644
--- a/redfish-core/include/registries/base_message_registry.hpp
+++ b/redfish-core/include/registries/base_message_registry.hpp
@@ -36,7 +36,7 @@ const Header header = {
constexpr const char* url =
"https://redfish.dmtf.org/registries/Base.1.8.1.json";
-constexpr std::array<MessageEntry, 73> registry = {
+constexpr std::array<MessageEntry, 74> registry = {
MessageEntry{
"AccessDenied",
{
@@ -429,6 +429,22 @@ constexpr std::array<MessageEntry, 73> registry = {
"Resolve other reported errors and retry the current operation.",
}},
MessageEntry{
+ "MutualExclusiveProperties",
+ {
+ "Indicates that the requested operation could not be completed, "
+ "because of a conflict properties.",
+ "The properties '%1' and '%2' are mutually exclusive.",
+ "Warning",
+ "Warning",
+ 2,
+ {
+ "string",
+ "string",
+ },
+ "Ensure that the request body doesn't have mutually exclusive "
+ "properties and resubmit the request.",
+ }},
+ MessageEntry{
"NoOperation",
{
"Indicates that the requested operation will not perform any "