133da10b08
This change enables one way communication via BMC (if configured) through mtce. when 2 controllers lost all communications to each other. The algorithm is: when communications all lost, both active and standby controllers, verify its interfaces (mgmt, infra, and oam) if active controller is healthy, it will request a bmc reset thorugh mtce, against standby controller. if standby controller is healthy, it will active itself and wait a total 45 seconds before requesting a bmc reset through mtce, against the active controller. Changes also include: 1. adding new initial failover state. initial state is a state before the node is enabled 2. remove failover thread. using worker thread action to perform time consuming operations 3. remove entire failover action table Story: 2003577 Task: 24901 Change-Id: I7d294d40e84469df6b6a6f6dd490cf3c4557b711 Signed-off-by: Bin Qian <bin.qian@windriver.com>
21 lines
538 B
C++
21 lines
538 B
C++
//
|
|
// Copyright (c) 2018 Wind River Systems, Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
#ifndef __SM_FAILOVER_NORMAL_STATE_H__
|
|
#define __SM_FAILOVER_NORMAL_STATE_H__
|
|
#include "sm_types.h"
|
|
#include "sm_failover_fsm.h"
|
|
|
|
class SmFailoverNormalState : public SmFSMState
|
|
{
|
|
public:
|
|
SmFailoverNormalState(SmFailoverFSM& fsm) : SmFSMState(fsm){}
|
|
SmErrorT exit_state();
|
|
protected:
|
|
SmErrorT event_handler(SmFailoverEventT event, const ISmFSMEventData* event_data);
|
|
};
|
|
|
|
|
|
#endif //__SM_FAILOVER_NORMAL_STATE_H__
|