Update symlinks for 2024.1Wrote a quick bash script to update these symlinks.These are versioned out in json schema directory[1].The symlinks don't work without this update.[1]: https://githu
Update symlinks for 2024.1Wrote a quick bash script to update these symlinks.These are versioned out in json schema directory[1].The symlinks don't work without this update.[1]: https://github.com/openbmc/bmcweb/tree/master/redfish-core/schema/dmtf/json-schemaBefore:cat static/redfish/v1/JsonSchemas/redfish-error/redfish-error.jsoncat: static/redfish/v1/JsonSchemas/redfish-error/redfish-error.json: Nosuch file or directoryf2a8e57ede74a8252100b2281e3f4d170aa69391 pulled in 2024.1 but did notupdate these links. Long term update_schemas.py should do this. Ifigured fix it first, then add update_schemas.py support.Tested: Cat a few of these links. They appear to work.Change-Id: Ibe55ab453775476b7a3d5e2fe79b3faaf0d45533Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
Add symlinks to folderNow that we have the schemas moved, add symlinks back to the schemasthat we use, so that they will be installed correctly.The meson option of follow_symlinks: true is added
Add symlinks to folderNow that we have the schemas moved, add symlinks back to the schemasthat we use, so that they will be installed correctly.The meson option of follow_symlinks: true is added to suppress awarning about potential change in behavior in meson in the future.Change-Id: Ie24536ca04038d8137818c201d9411b95361b14fSigned-off-by: Ed Tanous <ed@tanous.net>
Move existing schemas into foldersReorganize the existing schemas into folders under redfish core.The existing schema system has some problems:1. It's hard to add new schemas2. We have to rerun
Move existing schemas into foldersReorganize the existing schemas into folders under redfish core.The existing schema system has some problems:1. It's hard to add new schemas2. We have to rerun the script any time we want to change what schemas we use.3. Adding schemas optionally takes effortIn an effort to combat this, this patchset moves all the existingschemas into folders that represent their namespace namesdmtf/csdl represents the CSDL that dmtf publishesoem/openbmc represents the CSDL that OpenBMC publishesIn theory, this means that in the future we can relax OEM_SCHEMAS.md,and allow folks to possibly implement their own schemas in a way thatdoesn't have to effect all other systems.This also has the advantage of not requiring changes toupdate_schemas.py when we want to add, remove, or modify what version ofa schema we use. "current" schemas are just symlinks, so they can beupdated using git, and not necessarily have merge conflicts with oneanother.Tested: Redfish service validator passes.Change-Id: I6d4a130bba4cb874ef00a06ed579cc67f53dc7aeSigned-off-by: Ed Tanous <ed@tanous.net>
Bump Redfish schemas to 2023.3Redfish released 2023.3 1/25/2024.https://www.dmtf.org/content/redfish-release-20233-now-availableIt is several new schemas and added properties to a pile of schema
Bump Redfish schemas to 2023.3Redfish released 2023.3 1/25/2024.https://www.dmtf.org/content/redfish-release-20233-now-availableIt is several new schemas and added properties to a pile of schemas.One use case is: ComputerSystem v1.22.0Added EfficiencyFavorPower and EfficiencyFavorPerformance to PowerModehttps://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/69122This is a one line change to scripts/update_schemas.py and then ran thescript.Tested: See the new schema versions (e.g. System 1.22.0). No new Validator errors on p10bmc.Change-Id: I5c10d78e891da71fd14187f63aa6ac682cf15598Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Move the JsonSchemas to be generated at runtimeGenerating all of these index files at compile time is kind of wasteful,considering that it's really not that much code to generate them. Thiscommi
Move the JsonSchemas to be generated at runtimeGenerating all of these index files at compile time is kind of wasteful,considering that it's really not that much code to generate them. Thiscommit modifies the update_schemas script to generate a C++ version ofthe schemas that can then be used to generate a route. This allowsdeleting a LOT of fixed files, for a very small incremental binary sizeincrease.This change will cause two impacts that a user could possibly notice.Expand will now work properly on JsonSchemas tree.Keys on the JsonSchema schemas will now be sorted alphabetically, as wedo elsewhere.All other things should remain the same.Tested:Redfish service validator passes.curl --insecure --user root:0penBmc https://192.168.7.2/redfish/v1/JsonSchemas/TriggersReturns the same object as before with changes above.This adds 2512 bytes to the bmcweb binary size, and interestingly, adds3764 bytes to the overall rootfs size, despite the level of file deletion seen in the patch. While this is debatably "worse" than what we had before in this regard, making JsonSchemas work similar to how the rest of the Redfish tree operates, is worth the minor increase in code size.Signed-off-by: Ed Tanous <edtanous@google.com>Change-Id: Ic0d568112a3784821aa6867f7bcf50705dc586db
Move to 2020.42020.4 contains a lot of new schemas.New feature include: new power and thermal schemas, conditions,and new account types.For more information, see:https://www.dmtf.org/sites/def
Move to 2020.42020.4 contains a lot of new schemas.New feature include: new power and thermal schemas, conditions,and new account types.For more information, see:https://www.dmtf.org/sites/default/files/Redfish_Release_2020.4_Overview.pdfTested: Validator passes. Able to see new schemas.Change-Id: I7fb860c84fa4cff80698dcb26a463b155e6faba7Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Move to 2020.3Run the script update_schemas.py by pointing it to 2020.3An overview of 2020.3 release can be found at:https://www.dmtf.org/sites/default/files/Redfish_Release_2020.3_Overview.pdf
Move to 2020.3Run the script update_schemas.py by pointing it to 2020.3An overview of 2020.3 release can be found at:https://www.dmtf.org/sites/default/files/Redfish_Release_2020.3_Overview.pdfTested: Loaded on a Witherspoon and Validator passed with the latest schemasSigned-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com>Change-Id: I6c7a2e0cbdbe599930ba453a1d8c134c22136306
Move to 2020.2Point update_schemas.py at 2020.2 and run the script.An overview of 2020.2 can be found at:https://www.dmtf.org/sites/default/files/Redfish_Release_2020.2_Overview.pdfTested: Loa
Move to 2020.2Point update_schemas.py at 2020.2 and run the script.An overview of 2020.2 can be found at:https://www.dmtf.org/sites/default/files/Redfish_Release_2020.2_Overview.pdfTested: Loaded on a Witherspoon and ran the validator. See the new schemas.Change-Id: Idb6cbc58efe484dcffa0cc22deff3a4746af67edSigned-off-by: Gunnar Mills <gmills@us.ibm.com>