| edition = "2023"; |
| |
| package milotic_tlbmc; |
| |
| // Controls the FRU collector module. |
| message FruCollectorModule { |
| bool enabled = 1 [default = false]; |
| // If true, allow FRUs not mapping to a config. This is useful for testing. |
| // This should not be enabled in production: if a FRU does not map to a |
| // config, very likely the machine has unsupported hardware config. Making |
| // tlbmc own the chassis of the machine may cause incorrect links. |
| bool allow_dangling_frus = 2 [default = false]; |
| } |
| |
| // Controls the sensor collector module. |
| // Note, sensor collector module needs FRU collector module to be enabled. |
| message SensorCollectorModule { |
| bool enabled = 1 [default = false]; |
| // If true, allow sensor creation failures to not end tlBMC store creation. |
| // This is useful for testing. This should not be enabled in production: if |
| // sensor creation fails, very likely the machine has real hardware issues. |
| bool allow_sensor_creation_failure = 2 [default = false]; |
| } |
| |
| // A proto message to hold all configurations of the modules in tlbmc. |
| message TlbmcConfig { |
| FruCollectorModule fru_collector_module = 1; |
| SensorCollectorModule sensor_collector_module = 2; |
| } |
| |
| message TlbmcConfigBundle { |
| TlbmcConfig general_config = 1; |
| // If a platform is specified in the map, the corresponding config will be |
| // used. |
| // Otherwise, the general config will be used. |
| // The key is the platform name, and the value is the config for the platform. |
| map<string, TlbmcConfig> platform_to_config = 2; |
| } |