Update update_schemas.py with new Oem
Several Oem schemas have been added but the update_schemas.py
has not been updated. Added them to the update_schemas.py so
the static/redfish/v1/$metadata/index.xml is correctly
built by update_schemas.py.
This is needed to move us to 2019.3 and eventually 2019.4.
Ideally, we would not just have a bunch of
metadata_index.write to write the Oem schemas to
$metadata/index.xml but this will do for now.
https://github.com/openbmc/bmcweb/issues/32
is to improve this.
Tested: Ran update_schemas.py and loaded that image on a
Witherspoon and ran the validator. No errors.
Change-Id: Iade028e690c31e25a72503d9352bc75eb7ee58dc
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/scripts/update_schemas.py b/scripts/update_schemas.py
index 1c3c6f1..01ab66c 100755
--- a/scripts/update_schemas.py
+++ b/scripts/update_schemas.py
@@ -107,13 +107,36 @@
</edmx:DataServices>
""")
# TODO:Issue#32 There's a bug in the script that currently deletes this
- # schema (because it's an OEM schema). Because it's the only one, and we
+ # schema (because it's an OEM schema). Because it's the only five, and we
# don't update schemas very often, we just manually fix it. Need a
# permanent fix to the script.
metadata_index.write(
" <edmx:Reference Uri=\"/redfish/v1/schema/OemManager_v1.xml\">\n")
metadata_index.write(" <edmx:Include Namespace=\"OemManager\"/>\n")
metadata_index.write(" </edmx:Reference>\n")
+
+ metadata_index.write(
+ " <edmx:Reference Uri=\"/redfish/v1/schema/OemCrashdump_v1.xml\">\n")
+ metadata_index.write(" <edmx:Include Namespace=\"OemCrashdump.v1_0_0\"/>\n")
+ metadata_index.write(" </edmx:Reference>\n")
+
+ metadata_index.write(
+ " <edmx:Reference Uri=\"/redfish/v1/schema/OemComputerSystem_v1.xml\">\n")
+ metadata_index.write(" <edmx:Include Namespace=\"OemComputerSystem\"/>\n")
+ metadata_index.write(" </edmx:Reference>\n")
+
+ metadata_index.write(
+ " <edmx:Reference Uri=\"/redfish/v1/schema/OemVirtualMedia_v1.xml\">\n")
+ metadata_index.write(" <edmx:Include Namespace=\"OemVirtualMedia\"/>\n")
+ metadata_index.write(" <edmx:Include Namespace=\"OemVirtualMedia.v1_0_0\"/>\n")
+ metadata_index.write(" </edmx:Reference>\n")
+
+ metadata_index.write(
+ " <edmx:Reference Uri=\"/redfish/v1/schema/OemAccountService_v1.xml\">\n")
+ metadata_index.write(" <edmx:Include Namespace=\"OemAccountService\"/>\n")
+ metadata_index.write(" <edmx:Include Namespace=\"OemAccountService.v1_0_0\"/>\n")
+ metadata_index.write(" </edmx:Reference>\n")
+
metadata_index.write("</edmx:Edmx>\n")
schema_files = {}