Commit 89509c44 authored by Mac Newbold's avatar Mac Newbold

Add event types from libdb.pm.

parent d30499ba
......@@ -12,6 +12,8 @@
char *tbdb_objecttypes[] = {
TBDB_OBJECTTYPE_TESTBED,
TBDB_OBJECTTYPE_STATE,
TBDB_OBJECTTYPE_OPMODE,
TBDB_OBJECTTYPE_LINK,
TBDB_OBJECTTYPE_TRAFGEN,
TBDB_OBJECTTYPE_TIME,
......@@ -30,7 +32,30 @@ char *tbdb_eventtypes[] = {
TBDB_EVENTTYPE_MODIFY,
TBDB_EVENTTYPE_SET,
TBDB_EVENTTYPE_RESET,
0,
TBDB_NODESTATE_ISUP,
TBDB_NODESTATE_REBOOTED,
TBDB_NODESTATE_REBOOTING,
TBDB_NODESTATE_SHUTDOWN,
TBDB_NODESTATE_BOOTING,
TBDB_NODESTATE_TBSETUP,
TBDB_NODESTATE_RELOADSETUP,
TBDB_NODESTATE_RELOADING,
TBDB_NODESTATE_RELOADDONE,
TBDB_NODESTATE_UNKNOWN,
TBDB_NODEOPMODE_NORMAL,
TBDB_NODEOPMODE_DELAYING,
TBDB_NODEOPMODE_UNKNOWNOS,
TBDB_NODEOPMODE_RELOADING,
TBDB_NODEOPMODE_NORMALv1,
TBDB_NODEOPMODE_MINIMAL,
TBDB_NODEOPMODE_RELOAD,
TBDB_NODEOPMODE_DELAY,
TBDB_NODEOPMODE_BOOTWHAT,
TBDB_NODEOPMODE_UNKNOWN,
TBDB_TBCONTROL_RESET,
TBDB_TBCONTROL_RELOADDONE,
TBDB_TBCONTROL_TIMEOUT,
0,
};
/*
......
......@@ -25,6 +25,8 @@
* If you add to these two lists, make sure you add to the arrays in tbdefs.c
*/
#define TBDB_OBJECTTYPE_TESTBED "TBCONTROL"
#define TBDB_OBJECTTYPE_STATE "TBNODESTATE"
#define TBDB_OBJECTTYPE_OPMODE "TBNODEOPMODE"
#define TBDB_OBJECTTYPE_LINK "LINK"
#define TBDB_OBJECTTYPE_TRAFGEN "TRAFGEN"
#define TBDB_OBJECTTYPE_TIME "TIME"
......@@ -41,6 +43,32 @@
#define TBDB_EVENTTYPE_SET "SET"
#define TBDB_EVENTTYPE_RESET "RESET"
#define TBDB_NODESTATE_ISUP "ISUP"
#define TBDB_NODESTATE_REBOOTED "REBOOTED"
#define TBDB_NODESTATE_REBOOTING "REBOOTING"
#define TBDB_NODESTATE_SHUTDOWN "SHUTDOWN"
#define TBDB_NODESTATE_BOOTING "BOOTING"
#define TBDB_NODESTATE_TBSETUP "TBSETUP"
#define TBDB_NODESTATE_RELOADSETUP "RELOADSETUP"
#define TBDB_NODESTATE_RELOADING "RELOADING"
#define TBDB_NODESTATE_RELOADDONE "RELOADDONE"
#define TBDB_NODESTATE_UNKNOWN "UNKNOWN"
#define TBDB_NODEOPMODE_NORMAL "NORMAL"
#define TBDB_NODEOPMODE_DELAYING "DELAYING"
#define TBDB_NODEOPMODE_UNKNOWNOS "UNKNOWNOS"
#define TBDB_NODEOPMODE_RELOADING "RELOADING"
#define TBDB_NODEOPMODE_NORMALv1 "NORMALv1"
#define TBDB_NODEOPMODE_MINIMAL "MINIMAL"
#define TBDB_NODEOPMODE_RELOAD "RELOAD"
#define TBDB_NODEOPMODE_DELAY "DELAY"
#define TBDB_NODEOPMODE_BOOTWHAT "_BOOTWHAT_"
#define TBDB_NODEOPMODE_UNKNOWN "UNKNOWN"
#define TBDB_TBCONTROL_RESET "RESET"
#define TBDB_TBCONTROL_RELOADDONE "RELOADDONE"
#define TBDB_TBCONTROL_TIMEOUT "TIMEOUT"
/*
* Protos.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment