aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_mgr.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-16 18:26:35 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-16 20:22:28 +0100
commitffc193443c177c3e41851c445c71fc1095ae2201 (patch)
tree441065297c14604b289ccdb2e5c99dc8331b107d /src/osmo-bts-sysmo/misc/sysmobts_mgr.h
parent8968b48643686683046a0af403178960f8baf9ed (diff)
sysmobts: Add "normal" actions to execute
Instead of keeping state to remember what was done and needs to be undone this patch introduces actions that will be executed when the system is back to normal. By design the system is considered to be in the normal state and these actions will be only executed after the system is coming back to the normal state. One advantage of this scheme is that an operator can decide that an overheated systems hould be off duty and requires manual interaction to be allowed back in service. The change has only been smoke tested Fixes: SYS#833
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr.h')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr.h b/src/osmo-bts-sysmo/misc/sysmobts_mgr.h
index f4058674..ac760835 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr.h
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr.h
@@ -19,6 +19,15 @@ enum {
TEMP_ACT_BTS_SRV_OFF = 0x10,
};
+/* actions only for normal state */
+enum {
+ TEMP_ACT_NORM_PW_CONTRL = 0x1,
+ TEMP_ACT_NORM_MASTER_ON = 0x2,
+ TEMP_ACT_NORM_SLAVE_ON = 0x4,
+ TEMP_ACT_NORM_PA_ON = 0x8,
+ TEMP_ACT_NORM_BTS_SRV_ON= 0x10,
+};
+
enum sysmobts_temp_state {
STATE_NORMAL, /* Everything is fine */
STATE_WARNING_HYST, /* Go back to normal next? */
@@ -39,6 +48,7 @@ struct sysmobts_temp_limit {
enum mgr_vty_node {
MGR_NODE = _LAST_OSMOVTY_NODE + 1,
+ ACT_NORM_NODE,
ACT_WARN_NODE,
ACT_CRIT_NODE,
LIMIT_RF_NODE,
@@ -57,6 +67,7 @@ struct sysmobts_mgr_instance {
struct sysmobts_temp_limit board_limit;
struct sysmobts_temp_limit pa_limit;
+ int action_norm;
int action_warn;
int action_crit;