Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 1599) sorted by relevance

12345678910>>...64

/openbmc/entity-manager/configurations/
H A Dmeson.build4 '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 Dmeson.build6 '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/test/redfish-core/lib/
H A Dservice_root_test.cpp24 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()
39 EXPECT_EQ(json["EventService"]["@odata.id"], "/redfish/v1/EventService"); in assertServiceRootGet()
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/
H A Dvalidate-regulators-config_tests.cpp39 using json = nlohmann::json; typedef
42 const json validConfigFile = R"(
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()
281 json andAction = in TEST()
295 json configFile = validConfigFile; in TEST()
[all …]
H A Dconfig_file_parser_tests.cpp71 using json = nlohmann::json; typedef
82 const json& contents) in writeConfigFile()
92 const json configFileContents = R"( in TEST()
155 const json configFileContents = R"( in TEST()
197 const json configFileContents = R"( { "foo": "bar" } )"_json; in TEST()
216 const json element = R"( { "format": "linear" } )"_json; in TEST()
217 const json& propertyElement = getRequiredProperty(element, "format"); in TEST()
224 const json element = R"( { "volts": 1.03 } )"_json; in TEST()
238 const json element = R"( in TEST()
252 const json element = R"( in TEST()
[all …]
/openbmc/bmcweb/redfish-core/include/
H A Derror_messages.hpp18 #include <nlohmann/json.hpp>
36 nlohmann::json success();
48 nlohmann::json generalError();
58 nlohmann::json created();
69 nlohmann::json noOperation();
80 nlohmann::json propertyDuplicate(std::string_view arg1);
92 nlohmann::json propertyUnknown(std::string_view arg1);
105 nlohmann::json propertyValueTypeError(const nlohmann::json& arg1,
108 void propertyValueTypeError(crow::Response& res, const nlohmann::json
[all...]
H A Dresource_messages.hpp18 #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 resourceStatusChangedO
[all...]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/
H A Dphosphor-ipmi-config.bb7 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/qemu/qapi/
H A Dqapi-schema.json37 { '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/phosphor-power/phosphor-regulators/src/
H A Dconfig_file_parser.hpp49 #include <nlohmann/json.hpp>
94 inline const nlohmann::json& getRequiredProperty(const nlohmann::json& element, in getRequiredProperty()
116 std::unique_ptr<Action> parseAction(const nlohmann::json& element);
129 const nlohmann::json& element);
141 std::unique_ptr<AndAction> parseAnd(const nlohmann::json& element);
153 inline uint8_t parseBitPosition(const nlohmann::json& element) in parseBitPosition()
178 inline uint8_t parseBitValue(const nlohmann::json& element) in parseBitValue()
203 inline bool parseBoolean(const nlohmann::json& element) in parseBoolean()
223 std::unique_ptr<Chassis> parseChassis(const nlohmann::json
[all...]
H A Dconfig_file_parser.cpp28 using json = nlohmann::json; typedef
41 json rootElement = json::parse(file); in parse()
55 std::unique_ptr<Action> parseAction(const json& element) in parseAction()
170 std::vector<std::unique_ptr<Action>> parseActionArray(const json& element) in parseActionArray()
181 std::unique_ptr<AndAction> parseAnd(const json& element) in parseAnd()
196 std::unique_ptr<Chassis> parseChassis(const json& element) in parseChassis()
208 const json& numberElement = getRequiredProperty(element, "number"); in parseChassis()
217 const json in parseChassis()
[all...]
/openbmc/phosphor-fan-presence/control/
H A Dmeson.build16 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/zon
[all...]
/openbmc/entity-manager/test/
H A Dtest_entity-manager.cpp14 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()
73 nlohmann::json expected = "the Test 23"; in TEST()
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/inventory/
H A Dphosphor-inventory-manager_%.bbappend3 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 Dphosphor-fan_%.bbappend6 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 Dphosphor-fan_%.bbappend3 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/phosphor-logging/extensions/openpower-pels/
H A Dregistry.cpp73 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()
320 * @param[in] json - The highest level callout JSON
324 bool calloutUsesAdditionalData(const nlohmann::json argument
385 findCalloutList(const nlohmann::json & json,const std::vector<std::string> & systemNames,nlohmann::json & calloutLists) findCalloutList() argument
470 makeRegistryCallout(const nlohmann::json & json) makeRegistryCallout() argument
553 getCalloutsWithoutAD(const nlohmann::json & json,const std::vector<std::string> & systemNames) getCalloutsWithoutAD() argument
608 getCalloutsUsingAD(const nlohmann::json & json,const std::vector<std::string> & systemNames,const AdditionalData & additionalData) getCalloutsUsingAD() argument
675 getJournalCapture(const nlohmann::json & json) getJournalCapture() argument
[all...]
/openbmc/openbmc/meta-ampere/meta-jefferson/recipes-phosphor/fans/
H A Dphosphor-fan_%.bbappend3 PACKAGECONFIG:append = " json"
6 file://events.json \
7 file://fans.json \
8 file://groups.json \
9 file://zones.json \
10 file://monitor.json \
11 file://presence.json \
16 CONTROL_CONFIGS = "events.json fans.json zones.json groups.json"
30 install -m 0644 ${UNPACKDIR}/monitor.json \
31 ${D}${datadir}/phosphor-fan-presence/monitor/${COMPAT_NAME}/config.json
[all …]
/openbmc/bmcweb/redfish-core/src/
H A Dresource_messages.cpp16 #include <nlohmann/json.hpp>
34 static nlohmann::json getLog(redfish::registries::resource_event::Index name, in getLog()
54 nlohmann::json resourceCreated() in resourceCreated()
67 nlohmann::json resourceRemoved() in resourceRemoved()
80 nlohmann::json resourceErrorsDetected(std::string_view arg1, in resourceErrorsDetected()
95 nlohmann::json resourceErrorsCorrected(std::string_view arg1, in resourceErrorsCorrected()
110 nlohmann::json resourceErrorThresholdExceeded(std::string_view arg1,
125 nlohmann::json resourceErrorThresholdCleared(std::string_view arg1,
140 nlohmann::json resourceWarningThresholdExceeded(std::string_view arg1, in resourceWarningThresholdExceeded()
155 nlohmann::json resourceWarningThresholdCleare
[all...]
H A Derror_message_utils.cpp16 void addMessageToErrorJson(nlohmann::json& target, in addMessageToErrorJson()
17 const nlohmann::json& message) in addMessageToErrorJson()
56 extendedInfo = nlohmann::json::array(); in addMessageToErrorJson()
62 void moveErrorsToErrorJson(nlohmann::json& target, nlohmann::json& source) in moveErrorsToErrorJson()
81 const nlohmann::json::array_t* extendedInfo = in moveErrorsToErrorJson()
82 (*extendedInfoIt).get_ptr<const nlohmann::json::array_t*>(); in moveErrorsToErrorJson()
88 for (const nlohmann::json& message : *extendedInfo) in moveErrorsToErrorJson()
95 void addMessageToJsonRoot(nlohmann::json& target, const nlohmann::json& message) in addMessageToJsonRoot()
100 target[messages::messageAnnotation] = nlohmann::json::array(); in addMessageToJsonRoot()
106 void addMessageToJson(nlohmann::json& target, const nlohmann::json& message, in addMessageToJson()
[all …]
H A Derror_messages.cpp22 #include <nlohmann/json.hpp>
43 static nlohmann::json getLog(redfish::registries::base::Index name, in getLog()
62 nlohmann::json success() in success()
79 nlohmann::json generalError() in generalError()
97 nlohmann::json created() in created()
115 nlohmann::json noOperation() in noOperation()
133 nlohmann::json propertyDuplicate(std::string_view arg1) in propertyDuplicate()
152 nlohmann::json propertyUnknown(std::string_view arg1) in propertyUnknown()
171 nlohmann::json propertyValueTypeError(const nlohmann::json
[all...]
/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Dconfig_file_parser_tests.cpp42 using json = nlohmann::json; typedef
51 void writeConfigFile(const fs::path& pathName, const json& contents) in writeConfigFile()
248 const json configFileContents = R"( in TEST()
284 const json configFileContents = R"( in TEST()
315 const json configFileContents = R"( [ "foo", "bar" ] )"_json; in TEST()
329 const json element = R"( { "name": "VDD_CPU0" } )"_json; in TEST()
330 const json& propertyElement = getRequiredProperty(element, "name"); in TEST()
337 const json element = R"( { "foo": 23 } )"_json; in TEST()
351 const json element = R"( true )"_json; in TEST()
358 const json element = R"( false )"_json; in TEST()
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/logging/
H A Dphosphor-logging_%.bbappend6 SRC_URI:append:p10bmc = " file://com.ibm.Hardware.Chassis.Model.Rainier2U_dev_callouts.json"
7 SRC_URI:append:p10bmc = " file://com.ibm.Hardware.Chassis.Model.Rainier4U_dev_callouts.json"
8 SRC_URI:append:p10bmc = " file://com.ibm.Hardware.Chassis.Model.Everest_dev_callouts.json"
9 SRC_URI:append:p10bmc = " file://com.ibm.Hardware.Chassis.Model.Bonnell_dev_callouts.json"
10 …mc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Rainier2U_dev_callouts.json"
11 …mc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Rainier4U_dev_callouts.json"
12 …0bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Everest_dev_callouts.json"
13 …0bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Bonnell_dev_callouts.json"
21 …el.Rainier2U_dev_callouts.json ${D}/${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Mode…
22 …el.Rainier4U_dev_callouts.json ${D}/${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Mode…
[all …]
/openbmc/openbmc/meta-facebook/recipes-phosphor/health/
H A Dphosphor-health-monitor_%.bbappend2 SRC_URI:append = " file://bmc_health_config.json \
21 sed -i "s/\"CPU_CRIT_VAL\"/${CPU_CRIT_VAL}/g" ${UNPACKDIR}/bmc_health_config.json
22 sed -i "s/CPU_CRIT_TGT/${CPU_CRIT_TGT}/g" ${UNPACKDIR}/bmc_health_config.json
23 sed -i "s/\"CPU_WARN_VAL\"/${CPU_WARN_VAL}/g" ${UNPACKDIR}/bmc_health_config.json
24 sed -i "s/CPU_WARN_TGT/${CPU_WARN_TGT}/g" ${UNPACKDIR}/bmc_health_config.json
26 sed -i "s/\"MEM_CRIT_VAL\"/${MEM_CRIT_VAL}/g" ${UNPACKDIR}/bmc_health_config.json
27 sed -i "s/MEM_CRIT_TGT/${MEM_CRIT_TGT}/g" ${UNPACKDIR}/bmc_health_config.json
28 sed -i "s/\"MEM_WARN_VAL\"/${MEM_WARN_VAL}/g" ${UNPACKDIR}/bmc_health_config.json
29 sed -i "s/MEM_WARN_TGT/${MEM_WARN_TGT}/g" ${UNPACKDIR}/bmc_health_config.json
31 sed -i "s/\"STORAGE_CRIT_VAL\"/${STORAGE_CRIT_VAL}/g" ${UNPACKDIR}/bmc_health_config.json
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Djson_utils.hpp15 #include <nlohmann/json.hpp>
54 nlohmann::json& reqJson);
134 UnpackErrorCode unpackValueWithErrorCode(nlohmann::json& jsonValue,
138 UnpackErrorCode unpackValueVariant(nlohmann::json& j, std::string_view key,
157 UnpackErrorCode unpackValueWithErrorCode(nlohmann::json& jsonValue,
216 else if constexpr (std::is_same_v<nlohmann::json, Type>) in unpackValueWithErrorCode()
229 nlohmann::json::object_t* obj = in unpackValueWithErrorCode()
230 jsonValue.get_ptr<nlohmann::json::object_t*>(); in unpackValueWithErrorCode()
260 bool unpackValue(nlohmann::json& jsonValue, std::string_view key,
274 nlohmann::json in unpackValue()
[all...]

12345678910>>...64