/openbmc/entity-manager/ |
H A D | meson.build | 70 install_data('blacklist.json') 73 '1ux16_riser.json', 74 '2ux8_riser.json', 75 '3ypower_vast2112_psu.json', 76 '8x25_hsbp.json', 77 'a2ul16riser.json', 78 'a2ux8x4riser.json', 79 'acbel_r1ca2122a_psu.json', 80 'acbell_rica_psu.json', 81 'ahw1um2riser.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 | 16 #include <nlohmann/json.hpp> 32 * @brief Moves all error messages from the |source| JSON to |target| 34 void moveErrorsToErrorJson(nlohmann::json& target, nlohmann::json& source); 37 * @brief Formats Success message into JSON 41 * @returns Message Success formatted to JSON */ 42 nlohmann::json success(); 47 * @brief Formats GeneralError message into JSON 53 * @returns Message GeneralError formatted to JSON */ 54 nlohmann::json generalError(); 59 * @brief Formats Created message into JSON [all …]
|
H A D | resource_messages.hpp | 16 #include <nlohmann/json.hpp> 28 nlohmann::json resourceCreated(); 30 nlohmann::json resourceRemoved(); 32 nlohmann::json resourceErrorsDetected(std::string_view arg1, 35 nlohmann::json resourceErrorsCorrected(std::string_view arg1, 38 nlohmann::json resourceErrorThresholdExceeded(std::string_view arg1, 41 nlohmann::json 44 nlohmann::json resourceWarningThresholdExceeded(std::string_view arg1, 47 nlohmann::json resourceWarningThresholdCleared(std::string_view arg1, 50 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 | 7 #include <nlohmann/json.hpp> 22 nlohmann::json& json = res.jsonValue; in assertServiceRootGet() local 23 EXPECT_EQ(json["@odata.id"], "/redfish/v1"); in assertServiceRootGet() 24 EXPECT_EQ(json["@odata.type"], "#ServiceRoot.v1_15_0.ServiceRoot"); in assertServiceRootGet() 26 EXPECT_EQ(json["AccountService"]["@odata.id"], in assertServiceRootGet() 28 EXPECT_EQ(json["AccountService"].size(), 1); in assertServiceRootGet() 30 EXPECT_EQ(json["CertificateService"]["@odata.id"], in assertServiceRootGet() 32 EXPECT_EQ(json["CertificateService"].size(), 1); in assertServiceRootGet() 34 EXPECT_EQ(json["Chassis"]["@odata.id"], "/redfish/v1/Chassis"); in assertServiceRootGet() 35 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/phosphor-fan-presence/control/ |
H A D | meson.build | 20 './json', 21 './json/actions', 22 './json/triggers' 25 'json/dbus_zone.cpp', 26 'json/event.cpp', 27 'json/fan.cpp', 28 'json/group.cpp', 29 'json/manager.cpp', 30 'json/profile.cpp', 31 'json/zone.cpp', [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/openpower-vpd-parser/config/ibm/ |
H A D | systems.json | 6 "json": "50001001.json" string 8 "default": "50001001_v2.json" 13 "json": "50001000.json" string 15 "default": "50001000_v2.json" 18 "default": "50001002.json" 23 "json": "50003000.json" string 25 "default": "50003000_v2.json" 28 "default": "50004000.json" 33 "json": "60001001.json" string 35 "default": "60001001_v2.json" [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 | 21 #include <nlohmann/json.hpp> 42 static void addMessageToErrorJson(nlohmann::json& target, in addMessageToErrorJson() 43 const nlohmann::json& message) in addMessageToErrorJson() 82 extendedInfo = nlohmann::json::array(); in addMessageToErrorJson() 88 void moveErrorsToErrorJson(nlohmann::json& target, nlohmann::json& source) in moveErrorsToErrorJson() 107 const nlohmann::json::array_t* extendedInfo = in moveErrorsToErrorJson() 108 (*extendedInfoIt).get_ptr<const nlohmann::json::array_t*>(); in moveErrorsToErrorJson() 114 for (const nlohmann::json& message : *extendedInfo) in moveErrorsToErrorJson() 121 static void addMessageToJsonRoot(nlohmann::json& target, in addMessageToJsonRoot() 122 const nlohmann::json& message) in addMessageToJsonRoot() [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/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/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 | 19 isContentTypeAllowed("application/json", ContentType::JSON, false)); in TEST() 22 EXPECT_TRUE(isContentTypeAllowed("application/json, text/html", in TEST() 31 isContentTypeAllowed("application/html", ContentType::JSON, false)); in TEST() 33 isContentTypeAllowed("application/json", ContentType::CBOR, false)); in TEST() 36 EXPECT_FALSE(isContentTypeAllowed("application/json, text/html", in TEST() 56 getPreferredContentType("text/html, application/json", contentType), in TEST() 59 std::array<ContentType, 2> htmlJson{ContentType::HTML, ContentType::JSON}; in TEST() 60 EXPECT_EQ(getPreferredContentType("text/html, application/json", htmlJson), in TEST() 75 std::array<ContentType, 2> jsonHtml{ContentType::JSON, ContentType::HTML}; in TEST() 76 EXPECT_EQ(getPreferredContentType("text/html, application/json", jsonHtml), in TEST() [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/openbmc/meta-ampere/meta-jade/recipes-phosphor/fans/ |
H A D | phosphor-fan_%.bbappend | 6 PACKAGECONFIG:append = " json" 8 SRC_URI:append = " file://events.json \ 9 file://fans.json \ 10 file://groups.json \ 11 file://zones.json \ 12 file://monitor.json \ 13 file://presence.json \ 25 cp ${UNPACKDIR}/events.json ${S}/control/config_files/${MACHINE}/events.json 26 cp ${UNPACKDIR}/fans.json ${S}/control/config_files/${MACHINE}/fans.json 27 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 \ 20 CONTROL_CONFIGS = "events.json fans.json zones.json groups_2p.json groups_1p.json" 39 install -m 0644 ${UNPACKDIR}/groups_2p.json \ [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": "pid.json#/$defs/Pid" 26 "$ref": "pid_zone.json#/$defs/PidZone" 29 "$ref": "satellite_controller.json#/$defs/SatelliteController" 32 "$ref": "stepwise.json#/$defs/Stepwise" [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 getSRCSymptomIDFields(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 …]
|
/openbmc/telemetry/tests/src/ |
H A D | test_persistent_json_storage.cpp | 43 nlohmann::json data = nlohmann::json::object(); in TEST_F() 59 sut.store(FilePath("report/domain-1/name-1/conf-1.json"), in TEST_F() 60 nlohmann::json("data-1a")); in TEST_F() 61 sut.store(FilePath("report/domain-1/name-2/conf-1.json"), in TEST_F() 62 nlohmann::json("data-2a")); in TEST_F() 63 sut.store(FilePath("report/domain-1/name-2/conf-2.json"), in TEST_F() 64 nlohmann::json("data-2b")); in TEST_F() 65 sut.store(FilePath("report/domain-2/name-1/conf-1.json"), in TEST_F() 66 nlohmann::json("data-3a")); in TEST_F() 70 UnorderedElementsAre(FilePath("report/domain-1/name-1/conf-1.json"), in TEST_F() [all …]
|