Disambiguate probed configs sharing the same template name in tlBMC When multiple distinct entity config files share identical unexpanded template names (e.g. "Name": "board_i2c_$bus" or "Card_$index"), tlBMC stored probed configurations in `ProbedConfigMap` keyed by the unexpanded template name string. When subsequent configs with distinct probes (e.g., matching bus 0 vs bus 8) probed true, the latter config's JSON object overwrote earlier matching configs in the map. During `ProcessProbedConfigs`, only the last config's "Exposes" array (and ComputerSystem associations) was applied across all matched FRUs. Key Changes: 1. Updated `ProbedConfigMap` to `absl::flat_hash_map<std::string, std::vector<ProbedConfigData>>`, storing each probed config's matched FRUs alongside its original JSON configuration. 2. Updated `ProbeFru`, `AddReadyFruConfig`, and `ProcessConfigs` to append and iterate over probed config entries in the map. 3. Updated `ProcessProbedConfigs` to process each `ProbedConfigData` with its corresponding JSON configuration while maintaining continuous `$index` numbering across configs sharing the template name. 4. Added unit test cases in `entity_config_json_impl_test.cc` verifying `$bus` and `$index` substitution when multiple config files share template names. Google-Bug-Id:548667378,552599743 PiperOrigin-RevId: 972010029 Change-Id: I67cc5c64450595cdfd508fcc5dfa1e388d435911
This project is Google's version of BMCWeb.
See Readme Google for Google added features. The following is the original README of OpenBMC/BMCWeb.
==============================================================================
This component attempts to be a “do everything” embedded webserver for OpenBMC.
The webserver implements a few distinct interfaces:
bmcweb at a protocol level supports http and https. TLS is supported through OpenSSL.
Bmcweb supports multiple authentication protocols:
Each of these types of authentication is able to be enabled or disabled both via runtime policy changes (through the relevant Redfish APIs) or via configure time options. All authentication mechanisms supporting username/password are routed to libpam, to allow for customization in authentication implementations.
All authorization in bmcweb is determined at routing time, and per route, and conform to the Redfish PrivilegeRegistry.
*Note: Non-Redfish functions are mapped to the closest equivalent Redfish privilege level.
bmcweb is configured per the meson build files. Available options are documented in meson_options.txt
meson builddir ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson will automatically download them via its wrap dependencies mentioned in bmcweb/subprojects.
bmcweb relies on some on-system data for storage of persistent data that is internal to the process. Details on the exact data stored and when it is read/written can seen from the persistent_data namespace.
When SSL support is enabled and a usable certificate is not found, bmcweb will generate a self-signed a certificate before launching the server. Please see the bmcweb source code for details on the parameters this certificate is built with.
bmcweb is capable of aggregating resources from satellite BMCs. Refer to AGGREGATION.md for more information on how to enable and use this feature.