Intel ZT 4901 Network Router User Manual


 
40 High Availability Software for the Intel
®
NetStructure
TM
ZT 4901 Technical Product Specification
Redundant Host API
RH Instance ID. A host can be a member of several RH systems simultaneously, similar to multi-
homed hosts in networking. In that case, the application can use the Redundant Host API from
several RH infrastructures. To select a specific RH system, the application uses the RH Instance ID
when obtaining the handle to the RH system via RhOpen. RH Instance ID is an implementation-
defined character string. To allow potential coexistence of multiple RH infrastructures on the same
host, the RH Instance ID should consist of the RH infrastructure identifier and the identifier of a
specific instance of the RH system (if multiple RH System instances are serviced by a single
infrastructure).
The C definition of the associated types used by this interface is given below:
typedef enum {
INACTIVE,
DISCONNECTED,
DISCONNECTING,
CONNECTED,
CONNECTING } RH_DOMAIN_SWC_STATE;
typedef enum {
MINOR_ALARM,
MAJOR_ALARM,
CRITICAL_ALARM } RH_ALARM_SEVERITY;
typedef enum {
ACTION_IGNORE = 0,
ACTION_NOTIFY = 1,
ACTION_SWITCHOVER = 2,
ACTION_RESTART = 4 } RH_ALARM_ACTION;
typedef enum {
NOTIFICATION_DOMAIN_STATE_CHANGE,
NOTIFICATION_SWITCHOVER,
NOTIFICATION_SWITCHOVER_REQUEST,
NOTIFICATION_UNSAFE_SWITCHOVER,
NOTIFICATION_ALARM } RH_NOTIFICATION_TYPE;
typedef enum {
FULLY_COOPERATIVE,
PARTIALLY_COOPERATIVE,
FORCED,
HOSTILE,
HARDWARE_INITIATED } RH_SWITCHOVER_TYPE;
typedef struct PHYSICAL_SLOT_ID_STRUCT {
uint32 ShelfID;
uint32 SlotID;
} PHYSICAL_SLOT_ID;
typedef void (*RH_DOMAIN_STATE_CALLBACK) (
IN uint32 Domain,
IN RH_DOMAIN_SWC_STATE State,
IN uint32 RequestingHost,
IN uint32 DestinationHost,
IN uint32 Timeout,
IN BOOLEAN Persist,
IN void *pContext );