commit | 855b46f32ad385b9e26cf3a2c1e3a547e0eb8632 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Mon Jan 15 16:21:40 2024 -0600 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Jan 17 13:30:40 2024 -0600 |
tree | 6234d445b64ef22bfae8ed7756c1d1d37b778021 | |
parent | 037a43e50495133744e151338f74c9a06986da44 [diff] |
State: add default paths for BMC,Host,Chassis Add namespace and path constants matching those in the README for programmatic use. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ice4e14716b2de6477f3dd7c15e53cc7bdb68270f
diff --git a/yaml/xyz/openbmc_project/State/BMC.interface.yaml b/yaml/xyz/openbmc_project/State/BMC.interface.yaml index 4a1d575..5dbc2f7 100644 --- a/yaml/xyz/openbmc_project/State/BMC.interface.yaml +++ b/yaml/xyz/openbmc_project/State/BMC.interface.yaml
@@ -83,3 +83,11 @@ - name: "Unknown" description: > Last reboot is caused by Unknown + +paths: + - namespace: /xyz/openbmc_project/state + segments: + - name: BMC + description: > + The object representing _this_ BMC is always at bmc0. + value: bmc0
diff --git a/yaml/xyz/openbmc_project/State/Chassis.interface.yaml b/yaml/xyz/openbmc_project/State/Chassis.interface.yaml index 13606a2..e368952 100644 --- a/yaml/xyz/openbmc_project/State/Chassis.interface.yaml +++ b/yaml/xyz/openbmc_project/State/Chassis.interface.yaml
@@ -89,3 +89,9 @@ - name: "Good" description: > Chassis power status is in a good condition + +paths: + - namespace: /xyz/openbmc_project/state + segments: + - name: Chassis + value: chassis
diff --git a/yaml/xyz/openbmc_project/State/Host.interface.yaml b/yaml/xyz/openbmc_project/State/Host.interface.yaml index 006a501..0b31559 100644 --- a/yaml/xyz/openbmc_project/State/Host.interface.yaml +++ b/yaml/xyz/openbmc_project/State/Host.interface.yaml
@@ -122,3 +122,9 @@ description: > The host firmware crashed and the BMC has automatically initiated a restart of the host firmware + +paths: + - namespace: /xyz/openbmc_project/state + segments: + - name: Host + value: host