summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2021-09-23 05:56:16 +0300
committerEd Tanous <ed@tanous.net>2021-10-04 21:35:23 +0300
commit9d4246691d5f8723cd79752a0b354fc06b677b55 (patch)
tree6d3b7c6dd96593b5275715c4df76f9ee8a044024 /scripts
parentcf2f932e089764a9dbcecba93d7abc57ad84f6ee (diff)
downloadbmcweb-9d4246691d5f8723cd79752a0b354fc06b677b55.tar.xz
Move to 2021.2
Update the script to point at 2021.2, change the path of the files since they moved yet again, and run the script. The directory structure moved back to the way they had it pre-2020.1: https://github.com/openbmc/bmcweb/commit/a778c0261282b95e14ea3f4406959638b5edb040 Since we have an exclude list, this only brings in new versions of schemas bmcweb already uses. Overview of 2021.2: https://www.dmtf.org/sites/default/files/Redfish_Release_2021.2_Overview.pdf IBM plans to use Control (for PowerCapping) and IdlePowerSaver immediately. Tested: Validator passed after DMTF/Redfish-Service-Validator/pull/423 merged. CI uses the latest Redfish-Service-Validator so not a problem for CI. For manual users only a small window where an older validator would fail. After the schemapack changes but before PR423. See the new schemas. Change-Id: I2fe539087167cf6d962c14bf31fa23861302646f Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update_schemas.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/update_schemas.py b/scripts/update_schemas.py
index dd39278e4b..9b4c88f043 100755
--- a/scripts/update_schemas.py
+++ b/scripts/update_schemas.py
@@ -9,7 +9,7 @@ import json
import xml.etree.ElementTree as ET
-VERSION = "DSP8010_2021.1"
+VERSION = "DSP8010_2021.2"
# To use a new schema, add to list and rerun tool
include_list = [
@@ -161,9 +161,9 @@ with open(metadata_index_path, 'w') as metadata_index:
" Version=\"4.0\">\n")
for zip_filepath in zip_ref.namelist():
- if zip_filepath.startswith(VERSION + '/csdl/') and \
+ if zip_filepath.startswith(VERSION + '/' + VERSION + '/csdl/') and \
(zip_filepath != VERSION + "/csdl/") and \
- (zip_filepath != VERSION + "/csdl/"):
+ (zip_filepath != VERSION + '/' + VERSION + "/csdl/"):
filename = os.path.basename(zip_filepath)
# filename looks like Zone_v1.xml
@@ -260,7 +260,7 @@ with open(metadata_index_path, 'w') as metadata_index:
schema_files = {}
for zip_filepath in zip_ref.namelist():
- if zip_filepath.startswith(os.path.join(VERSION, 'json-schema/')):
+ if zip_filepath.startswith(os.path.join(VERSION, VERSION, 'json-schema/')):
filename = os.path.basename(zip_filepath)
filenamesplit = filename.split(".")
@@ -281,7 +281,7 @@ for zip_filepath in zip_ref.namelist():
for schema, version in schema_files.items():
basename = schema + "." + version + ".json"
- zip_filepath = os.path.join(VERSION, "json-schema", basename)
+ zip_filepath = os.path.join(VERSION, VERSION, "json-schema", basename)
schemadir = os.path.join(json_schema_path, schema)
os.makedirs(schemadir)
location_json = OrderedDict()