summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2020-07-09 05:17:44 +0300
committerSunitha Harish <sunharis@in.ibm.com>2020-07-13 08:28:17 +0300
commite7808c93f01081ca12e1b4769691b5ae673f9017 (patch)
tree5071323a0a0e15081c760b157e7f3ae10c3d54b0 /scripts
parenta502de3d661acf95613d4e4d27c9611f2c8148ea (diff)
downloadbmcweb-e7808c93f01081ca12e1b4769691b5ae673f9017.tar.xz
Move registries to v1_4_0.MessageRegistry
This implements the MessageSeverity property which tools and users should use instead of the deprecated Severity property. Since the registries use common infrastructure, easiest if just bumped together and now allows grabbing the latest when implementing a new registry, e.g. ResourceEvent. Implement this new required property, MessageSeverity, in the openbmc registry. Follow Redfish registries in having both MessageSeverity and Severity. Modified parse_registries.py to look at latest Base and TaskEvent registries and ran parse_registries.py. Tested: Built and validator passes. See new registries: curl -k https://$bmc/redfish/v1/Registries/Base { "@odata.id": "/redfish/v1/Registries/Base", "@odata.type": "#MessageRegistryFile.v1_1_0.MessageRegistryFile", "Description": "DMTF Base Message Registry File Location", "Id": "Base", "Languages": [ "en" ], "Languages@odata.count": 1, "Location": [ { "Language": "en", "PublicationUri": "https://redfish.dmtf.org/registries/Base.1.8.1.json", "Uri": "/redfish/v1/Registries/Base/Base" } ], ... curl -k https://$bmc/redfish/v1/Registries/Base/Base { "@Redfish.Copyright": "Copyright 2014-2020 DMTF. All rights reserved.", "@odata.type": "#MessageRegistry.v1_4_0.MessageRegistry", "Description": "This registry defines the base messages for Redfish", "Id": "Base.1.8.1", "Language": "en", "Messages": { "AccessDenied": { "Description": "Indicates that while attempting to access, connect to or transfer to/from another resource, the service denied access.", "Message": "While attempting to establish a connection to %1, the service denied access.", "MessageSeverity": "Critical", "NumberOfArgs": 1, "ParamTypes": [ "string" ], "Resolution": "Attempt to ensure that the URI is correct and that the service has the appropriate credentials.", " ... Change-Id: I6495af0e02036ea527036d942d6b6b5f55178bb2 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/parse_registries.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py
index 3680738cd9..60563da11b 100755
--- a/scripts/parse_registries.py
+++ b/scripts/parse_registries.py
@@ -64,9 +64,9 @@ def make_getter(dmtf_name, header_name, type_name):
files = []
-files.append(make_getter('Base.1.4.0.json',
+files.append(make_getter('Base.1.8.1.json',
'base_message_registry.hpp', 'base'))
-files.append(make_getter('TaskEvent.1.0.1.json',
+files.append(make_getter('TaskEvent.1.0.2.json',
'task_event_message_registry.hpp', 'task_event'))
# Remove the old files
@@ -102,6 +102,7 @@ for file, json, namespace, url in files:
registry.write("\"{}\",".format(message["Description"]))
registry.write("\"{}\",".format(message["Message"]))
registry.write("\"{}\",".format(message["Severity"]))
+ registry.write("\"{}\",".format(message["MessageSeverity"]))
registry.write("{},".format(message["NumberOfArgs"]))
registry.write("{")
paramTypes = message.get("ParamTypes")