/openbmc/entity-manager/configurations/ |
H A D | meson.build | 4 '1ux16_riser.json', 5 '2ux8_riser.json', 6 '3ypower_vast2112_psu.json', 7 '8x25_hsbp.json', 8 'a2ul16riser.json', 9 'a2ux8x4riser.json', 10 'acbel_r1ca2122a_psu.json', 11 'acbell_rica_psu.json', 12 'ahw1um2riser.json', 13 'aspower_u1a-d10550_psu.json', [all …]
|
/openbmc/qemu/tests/qapi-schema/ |
H A D | meson.build | 6 'alternate-any.json', 7 'alternate-array.json', 8 'alternate-base.json', 9 'alternate-branch-if-invalid.json', 10 'alternate-clash.json', 11 'alternate-conflict-dict.json', 12 'alternate-conflict-enum-bool.json', 13 'alternate-conflict-enum-int.json', 14 'alternate-conflict-lists.json', 15 'alternate-conflict-string.json', [all …]
|
/openbmc/bmcweb/redfish-core/include/ |
H A D | error_messages.hpp | 18 #include <nlohmann/json.hpp> 31 * @brief Formats Success message into JSON 35 * @returns Message Success formatted to JSON */ 36 nlohmann::json success(); 41 * @brief Formats GeneralError message into JSON 47 * @returns Message GeneralError formatted to JSON */ 48 nlohmann::json generalError(); 53 * @brief Formats Created message into JSON 57 * @returns Message Created formatted to JSON */ 58 nlohmann::json created(); [all …]
|
H A D | resource_messages.hpp | 18 #include <nlohmann/json.hpp> 30 nlohmann::json resourceCreated(); 32 nlohmann::json resourceRemoved(); 34 nlohmann::json resourceErrorsDetected(std::string_view arg1, 37 nlohmann::json resourceErrorsCorrected(std::string_view arg1, 40 nlohmann::json resourceErrorThresholdExceeded(std::string_view arg1, 43 nlohmann::json resourceErrorThresholdCleared(std::string_view arg1, 46 nlohmann::json resourceWarningThresholdExceeded(std::string_view arg1, 49 nlohmann::json resourceWarningThresholdCleared(std::string_view arg1, 52 nlohmann::json resourceStatusChangedOK(std::string_view arg1, [all …]
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | config_file_parser.hpp | 49 #include <nlohmann/json.hpp> 63 * Parses the specified JSON configuration file. 83 * Returns the specified property of the specified JSON element. 87 * @param element JSON element 94 inline const nlohmann::json& getRequiredProperty(const nlohmann::json& element, in getRequiredProperty() 107 * Parses a JSON element containing an action. 113 * @param element JSON element 116 std::unique_ptr<Action> parseAction(const nlohmann::json& element); 119 * Parses a JSON element containing an array of actions. 125 * @param element JSON element [all …]
|
/openbmc/qemu/qapi/ |
H A D | qapi-schema.json | 37 { 'include': 'pragma.json' } 45 { 'include': 'error.json' } 46 { 'include': 'common.json' } 47 { 'include': 'sockets.json' } 48 { 'include': 'run-state.json' } 49 { 'include': 'crypto.json' } 50 { 'include': 'job.json' } 51 { 'include': 'block.json' } 52 { 'include': 'block-export.json' } 53 { 'include': 'char.json' } [all …]
|
/openbmc/bmcweb/test/redfish-core/lib/ |
H A D | service_root_test.cpp | 9 #include <nlohmann/json.hpp> 24 nlohmann::json& json = res.jsonValue; in assertServiceRootGet() local 25 EXPECT_EQ(json["@odata.id"], "/redfish/v1"); in assertServiceRootGet() 26 EXPECT_EQ(json["@odata.type"], "#ServiceRoot.v1_15_0.ServiceRoot"); in assertServiceRootGet() 28 EXPECT_EQ(json["AccountService"]["@odata.id"], in assertServiceRootGet() 30 EXPECT_EQ(json["AccountService"].size(), 1); in assertServiceRootGet() 32 EXPECT_EQ(json["CertificateService"]["@odata.id"], in assertServiceRootGet() 34 EXPECT_EQ(json["CertificateService"].size(), 1); in assertServiceRootGet() 36 EXPECT_EQ(json["Chassis"]["@odata.id"], "/redfish/v1/Chassis"); in assertServiceRootGet() 37 EXPECT_EQ(json["Chassis"].size(), 1); in assertServiceRootGet() [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/ |
H A D | phosphor-ipmi-config.bb | 7 file://cipher_list.json \ 8 file://dcmi_cap.json \ 9 file://dcmi_sensors.json \ 10 file://dev_id.json \ 11 file://power_reading.json \ 12 file://channel_access.json \ 13 file://channel_config.json \ 14 file://entity-map.json \ 15 file://cs_privilege_levels.json \ 29 install -m 0644 -D ${UNPACKDIR}/cipher_list.json \ [all …]
|
/openbmc/libcper/specification/json/ |
H A D | cper-json-full-log.json | 2 "$id": "cper-json-full-log", 3 "$schema": "https://json-schema.org/draft/2020-12/schema", 5 … "A Common Platform Error Record as defined in UEFI Specification Appendix N represented as JSON.", 10 "$ref": "./cper-json-header.json" 16 "$ref": "./cper-json-section-descriptor.json" 25 "$id": "cper-json-generic-processor-section", 30 "$ref": "./sections/cper-generic-processor.json" 35 "$id": "cper-json-ia32x64-processor-section", 40 "$ref": "./sections/cper-ia32x64-processor.json" 45 "$id": "cper-json-arm-processor-section", [all …]
|
H A D | cper-json-section-log.json | 7 "$ref": "./cper-json-header.json" 10 "$ref": "./cper-json-section-descriptor.json" 16 "$id": "cper-json-generic-processor-section", 21 "$ref": "./sections/cper-generic-processor.json" 26 "$id": "cper-json-ia32x64-processor-section", 31 "$ref": "./sections/cper-ia32x64-processor.json" 36 "$id": "cper-json-arm-processor-section", 41 "$ref": "./sections/cper-arm-processor.json" 46 "$id": "cper-json-memory-section", 51 "$ref": "./sections/cper-memory.json" [all …]
|
/openbmc/entity-manager/test/ |
H A D | test_entity-manager.cpp | 3 #include <nlohmann/json.hpp> 14 nlohmann::json j = {{"foo", "$bus"}}; in TEST() 21 nlohmann::json expected = 23; in TEST() 27 nlohmann::json j = {{"foo", "$TEST"}}; in TEST() 34 nlohmann::json expected = "Test"; in TEST() 40 nlohmann::json j = {{"foo", "the $TEST"}}; in TEST() 47 nlohmann::json expected = "the Test"; in TEST() 53 nlohmann::json j = {{"foo", "the $TEST worked"}}; in TEST() 60 nlohmann::json expected = "the Test worked"; in TEST() 66 nlohmann::json j = {{"foo", "the Test $TEST"}}; in TEST() [all …]
|
/openbmc/phosphor-fan-presence/control/ |
H A D | meson.build | 16 include_dirs += ['./json', './json/actions', './json/triggers'] 18 'json/dbus_zone.cpp', 19 'json/event.cpp', 20 'json/fan.cpp', 21 'json/group.cpp', 22 'json/manager.cpp', 23 'json/profile.cpp', 24 'json/zone.cpp', 25 'json/actions/count_state_floor.cpp', 26 'json/actions/count_state_target.cpp', [all …]
|
/openbmc/bmcweb/redfish-core/src/ |
H A D | resource_messages.cpp | 16 #include <nlohmann/json.hpp> 34 static nlohmann::json getLog(redfish::registries::resource_event::Index name, in getLog() 49 * @brief Formats ResourceCreated message into JSON 54 nlohmann::json resourceCreated() in resourceCreated() 62 * @brief Formats ResourceRemoved message into JSON 67 nlohmann::json resourceRemoved() in resourceRemoved() 75 * @brief Formats ResourceErrorsDetected message into JSON 80 nlohmann::json resourceErrorsDetected(std::string_view arg1, in resourceErrorsDetected() 90 * @brief Formats ResourceErrorsCorrected message into JSON 95 nlohmann::json resourceErrorsCorrected(std::string_view arg1, in resourceErrorsCorrected() [all …]
|
H A D | error_messages.cpp | 22 #include <nlohmann/json.hpp> 43 static nlohmann::json getLog(redfish::registries::base::Index name, in getLog() 57 * @brief Formats Success message into JSON 62 nlohmann::json success() in success() 74 * @brief Formats GeneralError message into JSON 79 nlohmann::json generalError() in generalError() 92 * @brief Formats Created message into JSON 97 nlohmann::json created() in created() 110 * @brief Formats NoOperation message into JSON 115 nlohmann::json noOperation() in noOperation() [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/src/ |
H A D | config_file_parser.hpp | 20 #include <nlohmann/json.hpp> 33 * Standard JSON configuration file directory on the BMC. 38 * Finds the JSON configuration file for the current system based on the 55 * @return path to the JSON configuration file, or an empty path if none was 63 * Parses the specified JSON configuration file. 81 * Returns the specified property of the specified JSON element. 85 * @param element JSON element 92 inline const nlohmann::json& getRequiredProperty(const nlohmann::json& element, in getRequiredProperty() 105 * Parses a JSON element containing a boolean. 111 * @param element JSON element [all …]
|
/openbmc/openpower-vpd-parser/vpd-tool/include/ |
H A D | vpd_tool.hpp | 5 #include <nlohmann/json.hpp> 27 * @brief Get specific properties of a FRU in JSON format. 30 * properties of the FRU in JSON format: 36 * @return On success, returns the properties of the FRU in JSON format, 37 * otherwise returns an empty JSON. 38 * If FRU's "Present" property is false, this API returns an empty JSON. 39 * Note: The caller of this API should handle empty JSON. 41 * @throw json::exception, std::out_of_range, std::bad_alloc 43 nlohmann::json getFruProperties(const std::string& i_objectPath) const; 46 * @brief API to populate FRU JSON. [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/inventory/ |
H A D | phosphor-inventory-manager_%.bbappend | 3 SRC_URI:append:ibm-ac-server = " file://associations.json" 9 file://ibm,rainier-2u_associations.json \ 10 file://ibm,rainier-4u_associations.json \ 11 file://ibm,everest_associations.json \ 12 file://ibm,blueridge-2u_associations.json \ 13 file://ibm,blueridge-4u_associations.json \ 14 file://ibm,fuji_associations.json \ 19 install -m 0755 ${UNPACKDIR}/associations.json ${D}${base_datadir}/associations.json 24 …m 0755 ${UNPACKDIR}/ibm,rainier-2u_associations.json ${D}${base_datadir}/ibm,rainier-2u_associatio… 25 …m 0755 ${UNPACKDIR}/ibm,rainier-4u_associations.json ${D}${base_datadir}/ibm,rainier-4u_associatio… [all …]
|
/openbmc/openbmc/meta-ampere/meta-jade/recipes-phosphor/fans/ |
H A D | phosphor-fan_%.bbappend | 5 PACKAGECONFIG:append = " json" 7 SRC_URI:append = " file://events.json \ 8 file://fans.json \ 9 file://groups.json \ 10 file://zones.json \ 11 file://monitor.json \ 12 file://presence.json \ 20 cp ${UNPACKDIR}/events.json ${S}/control/config_files/${MACHINE}/events.json 21 cp ${UNPACKDIR}/fans.json ${S}/control/config_files/${MACHINE}/fans.json 22 cp ${UNPACKDIR}/groups.json ${S}/control/config_files/${MACHINE}/groups.json [all …]
|
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-phosphor/fans/ |
H A D | phosphor-fan_%.bbappend | 3 PACKAGECONFIG:append = " json" 6 file://events.json \ 7 file://fans.json \ 8 file://groups_1p.json \ 9 file://groups_2p.json \ 10 file://zones.json \ 11 file://monitor.json \ 12 file://presence.json \ 17 CONTROL_CONFIGS = "events.json fans.json zones.json groups_2p.json groups_1p.json" 31 install -m 0644 ${UNPACKDIR}/groups_2p.json \ [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | validate-regulators-config_tests.cpp | 22 #include <nlohmann/json.hpp> 39 using json = nlohmann::json; typedef 42 const json validConfigFile = R"( 141 ../phosphor-regulators/schema/config_schema.json -c "; in getValidationToolCommand() 224 void writeDataToFile(const json configFileJson, std::string fileName) in writeDataToFile() 232 void expectJsonValid(const json configFileJson) in expectJsonValid() 241 void expectJsonInvalid(const json configFileJson, in expectJsonInvalid() 268 json configFile = validConfigFile; in TEST() 273 json configFile = validConfigFile; in TEST() 280 json configFile = validConfigFile; in TEST() [all …]
|
/openbmc/bmcweb/test/include/ |
H A D | http_utility_test.cpp | 21 isContentTypeAllowed("application/json", ContentType::JSON, false)); in TEST() 24 EXPECT_TRUE(isContentTypeAllowed("application/json, text/html", in TEST() 33 isContentTypeAllowed("application/html", ContentType::JSON, false)); in TEST() 35 isContentTypeAllowed("application/json", ContentType::CBOR, false)); in TEST() 38 EXPECT_FALSE(isContentTypeAllowed("application/json, text/html", in TEST() 58 getPreferredContentType("text/html, application/json", contentType), in TEST() 61 std::array<ContentType, 2> htmlJson{ContentType::HTML, ContentType::JSON}; in TEST() 62 EXPECT_EQ(getPreferredContentType("text/html, application/json", htmlJson), in TEST() 77 std::array<ContentType, 2> jsonHtml{ContentType::JSON, ContentType::HTML}; in TEST() 78 EXPECT_EQ(getPreferredContentType("text/html, application/json", jsonHtml), in TEST() [all …]
|
/openbmc/openpower-vpd-parser/vpd-manager/include/utility/ |
H A D | json_utility.hpp | 9 #include <nlohmann/json.hpp> 22 bool processSystemCmdTag(const nlohmann::json& i_parsedConfigJson, 29 const nlohmann::json& i_parsedConfigJson, const std::string& i_vpdFilePath, 33 bool procesSetGpioTag(const nlohmann::json& i_parsedConfigJson, 38 // Function pointers to process tags from config JSON. 40 const nlohmann::json& i_parsedConfigJson, const std::string& i_vpdFilePath, 49 * @brief API to read VPD offset from JSON file. 51 * @param[in] i_sysCfgJsonObj - Parsed system config JSON object. 53 * @return VPD offset if found in JSON, 0 otherwise. 55 inline size_t getVPDOffset(const nlohmann::json& i_sysCfgJsonObj, in getVPDOffset() [all …]
|
/openbmc/entity-manager/schemas/ |
H A D | global.json | 2 "$schema": "http://json-schema.org/draft-07/schema#", 8 "$ref": "ibm.json#/$defs/PowerModeProperties" 11 "$ref": "ibm.json#/$defs/IBMCompatibleSystem" 14 "$ref": "ibm.json#/$defs/IBMCFFPSConnector" 17 "$ref": "intel.json#/$defs/IntelFanConnector" 20 "$ref": "mctp.json#/$defs/MCTPI2CTarget" 23 "$ref": "mctp.json#/$defs/MCTPI3CTarget" 26 "$ref": "pid.json#/$defs/Pid" 29 "$ref": "pid_zone.json#/$defs/PidZone" 32 "$ref": "satellite_controller.json#/$defs/SatelliteController" [all …]
|
/openbmc/phosphor-led-manager/manager/ |
H A D | json-parser.hpp | 4 #include "json-config.hpp" 7 #include <nlohmann/json.hpp> 18 using Json = nlohmann::json; typedef 25 /** @brief Parse LED JSON file and output Json object 27 * @param[in] path - path of LED JSON file 29 * @return const Json - Json object 31 Json readJson(const fs::path& path) in readJson() 43 return Json::parse(jsonFile); in readJson() 79 static void loadJsonConfigV1GroupMember(const Json& member, in loadJsonConfigV1GroupMember() 100 static void loadJsonConfigV1Group(const Json& entry, in loadJsonConfigV1Group() [all …]
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | registry.cpp | 73 std::vector<RegistrySeverity> getSeverities(const nlohmann::json& severity) in getSeverities() 160 uint16_t getSRCReasonCode(const nlohmann::json& src, const std::string& name) in getSRCReasonCode() 175 uint8_t getSRCType(const nlohmann::json& src, const std::string& name) in getSRCType() 192 bool getSRCDeconfigFlag(const nlohmann::json& src) in getSRCDeconfigFlag() 197 bool getSRCCheckstopFlag(const nlohmann::json& src) in getSRCCheckstopFlag() 203 getSRCHexwordFields(const nlohmann::json& src, const std::string& name) in getSRCHexwordFields() 251 const nlohmann::json& src, const std::string& name) in getSRCSymptomIDFields() 283 const nlohmann::json& pelEntry, const std::string& name) in getComponentID() 317 * @brief Says if the JSON is the format that contains AdditionalData keys 320 * @param[in] json - The highest level callout JSON [all …]
|