meta-ampere: inventory: update fans inventory path
Fan inventory paths were associated by cooling/cooled_by association
with system/chassis in phosphor-inventory-manager associations.json.
This leads to them being shown under Chassis/chassis in Redfish which is
not desirable. This commit associates fans with their motherboard
inventory path instead, so fan inventories will appear under
Chassis/<Motherboard_name> in
redfish/v1/chassis/<Motherboard_name>/ThermalSubsystems/Fans/.
Tested:
1. On Mt.Mitchell, check if FANs are inside
/redfish/v1/Chassis/Mt_Mitchell_Motherboard/ThermalSubsystem/Fans/
2. On Mt.Jade, check if FANs are inside
/redfish/v1/Chassis/Mt_Jade/ThermalSubsystem/Fans/
Change-Id: Iab9bdd143572db3b80203c663c4129da4cfe3bb1
Signed-off-by: Chau Ly <chaul@amperecomputing.com>
diff --git a/meta-ampere/meta-jade/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json b/meta-ampere/meta-jade/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
index b07e4fa..9d0322c 100644
--- a/meta-ampere/meta-jade/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
+++ b/meta-ampere/meta-jade/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
@@ -23,7 +23,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/chassis/Mt_Jade"
]
},
{
@@ -61,7 +61,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/chassis/Mt_Jade"
]
},
{
@@ -99,7 +99,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/chassis/Mt_Jade"
]
},
{
@@ -137,7 +137,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/chassis/Mt_Jade"
]
},
{
@@ -175,7 +175,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/chassis/Mt_Jade"
]
},
{
@@ -213,7 +213,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/chassis/Mt_Jade"
]
},
{
diff --git a/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json b/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
index 4afaca0..f23d740 100644
--- a/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
+++ b/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
@@ -32,7 +32,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/board/Mt_Mitchell_Motherboard"
]
}
]
@@ -70,7 +70,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/board/Mt_Mitchell_Motherboard"
]
}
]
@@ -108,7 +108,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/board/Mt_Mitchell_Motherboard"
]
}
]
@@ -146,7 +146,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/board/Mt_Mitchell_Motherboard"
]
}
]
@@ -184,7 +184,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/board/Mt_Mitchell_Motherboard"
]
}
]
@@ -222,7 +222,7 @@
},
"paths":
[
- "/xyz/openbmc_project/inventory/system/chassis"
+ "/xyz/openbmc_project/inventory/system/board/Mt_Mitchell_Motherboard"
]
}
]