skeleton: Add BMC warmReset() method to org.openbmc.control.Bmc dbus interface
1.The host sends IPMI 'warm reset' command to reset BMC. Ipmid
calls the org.openbmc.control.Bmc::warmReset() to do reset.
warmReset() just invokes "reboot", which in effect
same as a 'warm' reset.
2.Add control.bmc to Palmetto.py/Barreleye.py to initialize this dbus method.
3.Comment g_idle_add() for loop issue.
Signed-off-by: Nan Li <bjlinan@cn.ibm.com>
diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index bc05722..9bb2dc8 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -208,6 +208,12 @@
'monitor_process' : False,
'process_name' : 'discover_system_state.py',
},
+ 'bmc_control' : {
+ 'system_state' : 'BMC_STARTING',
+ 'start_process' : True,
+ 'monitor_process' : True,
+ 'process_name' : 'control_bmc.exe',
+ },
}
CACHED_INTERFACES = {
diff --git a/bin/Palmetto.py b/bin/Palmetto.py
index 5d53e41..fe8a02a 100755
--- a/bin/Palmetto.py
+++ b/bin/Palmetto.py
@@ -149,6 +149,11 @@
'process_name' : 'fan.exe',
'args' : [ 'fan0','fan1','fan2','fan3','fan4' ]
}
+ 'bmc_control' : {
+ 'system_state' : 'BMC_STARTING',
+ 'start_process' : True,
+ 'monitor_process' : True,
+ 'process_name' : 'control_bmc.exe',
}
CACHED_INTERFACES = {