Commit 15137f79 authored by Mac Newbold's avatar Mac Newbold

Add state_triggers and its data.

parent dd27f82a
......@@ -818,6 +818,17 @@ CREATE TABLE state_transitions (
PRIMARY KEY (op_mode,state1,state2)
) TYPE=MyISAM;
#
# Table structure for table 'state_triggers'
#
CREATE TABLE state_triggers (
op_mode varchar(20) NOT NULL default '',
state varchar(20) NOT NULL default '',
trigger tinytext NOT NULL,
PRIMARY KEY (op_mode,state)
) TYPE=MyISAM;
#
# Table structure for table 'switch_paths'
#
......
......@@ -240,12 +240,13 @@ REPLACE INTO state_transitions VALUES ('NODEALLOC','REBOOT','FREE_DIRTY');
REPLACE INTO state_transitions VALUES ('NODEALLOC','RELOAD','FREE_CLEAN');
REPLACE INTO state_transitions VALUES ('NODEALLOC','RESERVED','REBOOT');
REPLACE INTO state_transitions VALUES ('NODEALLOC','RESERVED','RELOAD');
REPLACE INTO state_transitions VALUES ('NORMAL','BOOTING','REBOOTED');
REPLACE INTO state_transitions VALUES ('NORMAL','ISUP','ISUP');
REPLACE INTO state_transitions VALUES ('NORMAL','ISUP','REBOOTED');
REPLACE INTO state_transitions VALUES ('NORMAL','ISUP','REBOOTING');
REPLACE INTO state_transitions VALUES ('NORMAL','REBOOTED','BOOTING');
REPLACE INTO state_transitions VALUES ('NORMAL','REBOOTED','ISUP');
REPLACE INTO state_transitions VALUES ('NORMAL','REBOOTED','REBOOTED');
REPLACE INTO state_transitions VALUES ('NORMAL','REBOOTING','ISUP');
REPLACE INTO state_transitions VALUES ('NORMAL','REBOOTING','BOOTING');
REPLACE INTO state_transitions VALUES ('NORMAL','REBOOTING','REBOOTED');
REPLACE INTO state_transitions VALUES ('NORMAL','REBOOTING','REBOOTING');
REPLACE INTO state_transitions VALUES ('NORMALv1','BOOTING','TBSETUP');
......@@ -266,13 +267,28 @@ REPLACE INTO state_transitions VALUES ('USERSTATUS','UNAPPROVED','ACTIVE');
# Dumping data for table 'mode_transitions'
#
REPLACE INTO mode_transitions VALUES ('MINIMAL','SHUTDOWN','NORMAL','REBOOTING');
REPLACE INTO mode_transitions VALUES ('MINIMAL','SHUTDOWN','NORMALv1','SHUTDOWN');
REPLACE INTO mode_transitions VALUES ('MINIMAL','SHUTDOWN','RELOAD','SHUTDOWN');
REPLACE INTO mode_transitions VALUES ('NORMAL','REBOOTING','MINIMAL','SHUTDOWN');
REPLACE INTO mode_transitions VALUES ('NORMAL','REBOOTING','NORMALv1','SHUTDOWN');
REPLACE INTO mode_transitions VALUES ('NORMAL','REBOOTING','RELOAD','SHUTDOWN');
REPLACE INTO mode_transitions VALUES ('NORMALv1','SHUTDOWN','MINIMAL','SHUTDOWN');
REPLACE INTO mode_transitions VALUES ('NORMALv1','SHUTDOWN','NORMAL','REBOOTING');
REPLACE INTO mode_transitions VALUES ('NORMALv1','SHUTDOWN','RELOAD','SHUTDOWN');
REPLACE INTO mode_transitions VALUES ('RELOAD','RELOADDONE','MINIMAL','SHUTDOWN');
REPLACE INTO mode_transitions VALUES ('RELOAD','RELOADDONE','NORMAL','REBOOTING');
REPLACE INTO mode_transitions VALUES ('RELOAD','RELOADDONE','NORMALv1','SHUTDOWN');
#
# Dumping data for table 'state_triggers'
#
REPLACE INTO state_triggers VALUES ('NORMAL','ISUP','RESET');
REPLACE INTO state_triggers VALUES ('NORMALv1','ISUP','RESET');
REPLACE INTO state_triggers VALUES ('MINIMAL','ISUP','RESET');
REPLACE INTO state_triggers VALUES ('RELOAD','RELOADDONE','RESET');
#
# Dumping data for table 'testsuite_preentables'
#
......
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