control:configs: Add an intfs removed trigger
Add an interfaces_removed trigger to the action that sets fan floors
when sensors are nonfunctional so that it runs when the
OperationalStatus interface is removed from D-Bus.
This is necessary so that if the only non functional sensor is removed
the action will run and remove its floor hold.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I44b60d5087e3c48421c91246ccce8e48682f4005
diff --git a/control/config_files/p10bmc/ibm,everest/events.json b/control/config_files/p10bmc/ibm,everest/events.json
index a635fe9..8129b0e 100644
--- a/control/config_files/p10bmc/ibm,everest/events.json
+++ b/control/config_files/p10bmc/ibm,everest/events.json
@@ -367,6 +367,10 @@
"signal": "interfaces_added"
},
{
+ "class": "signal",
+ "signal": "interfaces_removed"
+ },
+ {
"class": "init",
"method": "get_properties"
}
@@ -1802,6 +1806,11 @@
"name": "nvme temps",
"interface": "xyz.openbmc_project.Sensor.Value",
"property": { "name": "Value" }
+ },
+ {
+ "name": "nvme temps",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property": { "name": "Functional" }
}
],
"triggers": [
diff --git a/control/config_files/p10bmc/ibm,rainier-1s4u/events.json b/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
index 786271d..e0beed3 100644
--- a/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
+++ b/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
@@ -301,6 +301,10 @@
"signal": "interfaces_added"
},
{
+ "class": "signal",
+ "signal": "interfaces_removed"
+ },
+ {
"class": "init",
"method": "get_properties"
}
@@ -913,6 +917,11 @@
"name": "nvme temps",
"interface": "xyz.openbmc_project.Sensor.Value",
"property": { "name": "Value" }
+ },
+ {
+ "name": "nvme temps",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property": { "name": "Functional" }
}
],
"triggers": [
diff --git a/control/config_files/p10bmc/ibm,rainier-2u/events.json b/control/config_files/p10bmc/ibm,rainier-2u/events.json
index c7dd074..b9f5fec 100644
--- a/control/config_files/p10bmc/ibm,rainier-2u/events.json
+++ b/control/config_files/p10bmc/ibm,rainier-2u/events.json
@@ -342,6 +342,10 @@
"signal": "interfaces_added"
},
{
+ "class": "signal",
+ "signal": "interfaces_removed"
+ },
+ {
"class": "init",
"method": "get_properties"
}
@@ -1238,6 +1242,11 @@
"name": "nvme temps",
"interface": "xyz.openbmc_project.Sensor.Value",
"property": { "name": "Value" }
+ },
+ {
+ "name": "nvme temps",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property": { "name": "Functional" }
}
],
"triggers": [
diff --git a/control/config_files/p10bmc/ibm,rainier-4u/events.json b/control/config_files/p10bmc/ibm,rainier-4u/events.json
index e94b543..2aac426 100644
--- a/control/config_files/p10bmc/ibm,rainier-4u/events.json
+++ b/control/config_files/p10bmc/ibm,rainier-4u/events.json
@@ -331,6 +331,10 @@
"signal": "interfaces_added"
},
{
+ "class": "signal",
+ "signal": "interfaces_removed"
+ },
+ {
"class": "init",
"method": "get_properties"
}
@@ -1228,6 +1232,11 @@
"name": "nvme temps",
"interface": "xyz.openbmc_project.Sensor.Value",
"property": { "name": "Value" }
+ },
+ {
+ "name": "nvme temps",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property": { "name": "Functional" }
}
],
"triggers": [