blob: 4f988ba51224dbdf44ccbf9691a279e717064f0a [file] [log] [blame]
Michael Walshda2d43c2017-02-20 16:04:59 -06001# 2017/02/20 Note: Commenting out 'boot_progress' requirements until they are working in product code.
2# TODO: Uncomment the boot_progress lines when support is re-introduced.
3{
Michael Walsh4aa82202017-03-02 14:45:49 -06004 # Note: "IPMI Power On" will be added soon.
5 # Initiate a power on using the REST API interface.
6 "REST Power On": {
Michael Walshda2d43c2017-02-20 16:04:59 -06007 "start": {
8 "chassis": "^Off$",
Michael Walsh4aa82202017-03-02 14:45:49 -06009 "boot_progress": "^Off$",
Michael Walshda2d43c2017-02-20 16:04:59 -060010 "host": "^Off$"
11 },
12 "end": {
13 "chassis": "^On$",
Michael Walsh4aa82202017-03-02 14:45:49 -060014 "boot_progress": "^FW Progress, Starting OS$",
Michael Walshda2d43c2017-02-20 16:04:59 -060015 "host": "^Running$",
16 "os_ping": "^1$",
17 "os_login": "^1$",
18 "os_run_cmd": "^1$"
19 },
20 "bmc_reboot": 0,
21 "method_type": "keyword",
22 "method": "Initiate Power On wait=${0}"
23 },
Michael Walsh4aa82202017-03-02 14:45:49 -060024 # Initiate a power off using the REST API interface.
25 "REST Power Off": {
Michael Walshda2d43c2017-02-20 16:04:59 -060026 "start": {
27 "chassis": "^On$",
Michael Walsh4aa82202017-03-02 14:45:49 -060028 "boot_progress": "^FW Progress, Starting OS$",
Michael Walshda2d43c2017-02-20 16:04:59 -060029 "host": "^Running$"
30 },
31 "end": {
32 "chassis": "^Off$",
Michael Walsh4aa82202017-03-02 14:45:49 -060033 "boot_progress": "^Off$",
Michael Walshda2d43c2017-02-20 16:04:59 -060034 "host": "^Off$",
35 "os_ping": "^0$",
36 "os_login": "^0$",
37 "os_run_cmd": "^0$"
38 },
39 "bmc_reboot": 0,
40 "method_type": "keyword",
41 "method": "Initiate Power Off"
42 },
Michael Walsh4aa82202017-03-02 14:45:49 -060043 # Run a "reboot" on the OBMC..
44 "OBMC Reboot": {
Michael Walshda2d43c2017-02-20 16:04:59 -060045 "start": {
46 "chassis": "^Off|On$"
47 },
48 "end": {
49 "chassis": "^Off$",
Michael Walsh4aa82202017-03-02 14:45:49 -060050 "boot_progress": "^Off$",
Michael Walshda2d43c2017-02-20 16:04:59 -060051 "host": "^Off$"
52 },
53 "bmc_reboot": 1,
54 "method_type": "keyword",
Michael Walsh4aa82202017-03-02 14:45:49 -060055 "method": "Open Connection And Log In ; Start Command /sbin/reboot"
56 },
57 # Run a "reboot" command on the OS_HOST.
58 "Host Reboot": {
59 "start": {
60 "chassis": "^On$",
61 "boot_progress": "^FW Progress, Starting OS$",
62 "host": "^Running$",
63 "os_ping": "^1$",
64 "os_login": "^1$",
65 "os_run_cmd": "^1$"
66 },
67 "end": {
68 "chassis": "^On$",
69 "boot_progress": "^FW Progress, Starting OS$",
70 "host": "^Running$",
71 "os_ping": "^1$",
72 "os_login": "^1$",
73 "os_run_cmd": "^1$"
74 },
75 "bmc_reboot": 0,
76 "method_type": "keyword",
77 "method": "utils.Initiate OS Host Reboot",
78 "lib_file_path": "utils.robot"
79 },
80 # Run a "shutdown" command on the OS_HOST.
81 "Host Power Off": {
82 "start": {
83 "chassis": "^On$",
84 "boot_progress": "^FW Progress, Starting OS$",
85 "host": "^Running$",
86 "os_ping": "^1$",
87 "os_login": "^1$",
88 "os_run_cmd": "^1$"
89 },
90 "end": {
91 "chassis": "^Off$",
92 "boot_progress": "^Off$",
93 "host": "^Off$",
94 "os_ping": "^0$",
95 "os_login": "^0$",
96 "os_run_cmd": "^0$"
97 },
98 "bmc_reboot": 0,
99 "method_type": "keyword",
100 "method": "utils.Initiate OS Host Power Off",
101 "lib_file_path": "utils.robot"
102 },
103 # Do an auto reboot by setting auto reboot to "yes" and going to quiesce state.
104 "Auto Reboot": {
105 "start": {
106 "chassis": "^On$",
107 "boot_progress": "^FW Progress, Starting OS$",
108 "host": "^Running$",
109 "os_ping": "^1$",
110 "os_login": "^1$",
111 "os_run_cmd": "^1$"
112 },
113 "end": {
114 "chassis": "^On$",
115 "boot_progress": "^FW Progress, Starting OS$",
116 "host": "^Running$",
117 "os_ping": "^1$",
118 "os_login": "^1$",
119 "os_run_cmd": "^1$"
120 },
121 "bmc_reboot": 0,
122 "method_type": "keyword",
123 "method": "utils.Initiate Auto Reboot",
124 "lib_file_path": "utils.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -0600125 }
126}