File tree Expand file tree Collapse file tree 4 files changed +23
-31
lines changed Expand file tree Collapse file tree 4 files changed +23
-31
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,7 @@ OPN003.503 Boot OPNsense (serial output) from disk after cold-boot
41
41
[Documentation] Boot OPNsense (serial output) from disk after cold-boot
42
42
@{supported_power_ctrls } = Create List RteCtrl sonoff
43
43
Skip If '${POWER_CTRL } ' not in ${supported_power_ctrls }
44
- Power On
45
- Set UEFI Option PowerStateAfterPowerAcLoss Powered On
46
- Sleep 2
47
- IF '${POWER_CTRL } ' == 'RteCtrl'
48
- Rte Psu Off
49
- ELSE IF '${POWER_CTRL } ' == 'sonoff'
50
- Sonoff Off
51
- END
52
- Sleep 12
53
- IF '${POWER_CTRL } ' == 'RteCtrl'
54
- Rte Psu On
55
- ELSE IF '${POWER_CTRL } ' == 'sonoff'
56
- Sonoff On
57
- END
44
+ Execute Cold Boot
58
45
${start_date } = Get Current Date
59
46
Boot OPNsense
60
47
${end_date } = Get Current Date
Original file line number Diff line number Diff line change @@ -34,24 +34,11 @@ PFS002.502 Boot pfSense LTS CE (serial output) from disk
34
34
Power On
35
35
Boot PfSense
36
36
37
- PFS003.502 Boot pfSense LTS CE (serial output) from disk after cold-boot
37
+ PFS003.502 Boot pfSense LTS CE (serial output) from diskt
38
38
[Documentation] Boot pfSense LTS CE (serial output) from disk after cold-boot
39
39
@{supported_power_ctrls } = Create List RteCtrl sonoff
40
40
Skip If '${POWER_CTRL } ' not in ${supported_power_ctrls }
41
- Power On
42
- Set UEFI Option PowerStateAfterPowerAcLoss Powered On
43
- Sleep 2
44
- IF '${POWER_CTRL } ' == 'RteCtrl'
45
- Rte Psu Off
46
- ELSE IF '${POWER_CTRL } ' == 'sonoff'
47
- Sonoff Off
48
- END
49
- Sleep 12
50
- IF '${POWER_CTRL } ' == 'RteCtrl'
51
- Rte Psu On
52
- ELSE IF '${POWER_CTRL } ' == 'sonoff'
53
- Sonoff On
54
- END
41
+ Execute Cold Boot
55
42
${start_date } = Get Current Date
56
43
Boot PfSense
57
44
${end_date } = Get Current Date
Original file line number Diff line number Diff line change 1
1
*** Settings ***
2
2
Library Collections
3
3
Resource ../keywords.robot
4
+ Resource ../lib/platform/power.robot
4
5
5
6
6
7
*** Keywords ***
@@ -16,7 +17,7 @@ Boot PfSense Installer
16
17
Write Into Terminal vt100
17
18
Read From Terminal Until [Accept]
18
19
Press Enter
19
- Set Suite Variable ${BOOTED_OS_ID } 502
20
+ Set Suite Variable ${BOOTED_OS_ID } ${ ENV_ID_PFSENSE }
20
21
Import Variables ${CURDIR } /../os-config/${BOOTED_OS_ID } -credentials.py
21
22
22
23
Boot OPNsense Installer
@@ -28,7 +29,7 @@ Boot OPNsense Installer
28
29
Execute File In File Explorer bootx64.efi
29
30
Read From Terminal Until FreeBSD/amd64 (OPNsense.localdomain) (ttyu0)
30
31
Read From Terminal Until login:
31
- Set Suite Variable ${BOOTED_OS_ID } 503
32
+ Set Suite Variable ${BOOTED_OS_ID } ${ ENV_ID_OPNSENSE }
32
33
Import Variables ${CURDIR } /../os-config/${BOOTED_OS_ID } -credentials.py
33
34
34
35
Enter PfSense Shell
Original file line number Diff line number Diff line change @@ -105,3 +105,20 @@ Power Cycle Into Windows
105
105
Power Cycle Into Firmware Setup
106
106
Power On
107
107
Enter Setup Menu Tianocore
108
+
109
+ Execute Cold Boot
110
+ [Documentation] Performs cold boot, either with RTE relay or Sonoff
111
+ Power On
112
+ Set UEFI Option PowerStateAfterPowerAcLoss Powered On
113
+ Sleep 2
114
+ IF '${POWER_CTRL } ' == 'RteCtrl'
115
+ Rte Psu Off
116
+ ELSE IF '${POWER_CTRL } ' == 'sonoff'
117
+ Sonoff Off
118
+ END
119
+ Sleep 12
120
+ IF '${POWER_CTRL } ' == 'RteCtrl'
121
+ Rte Psu On
122
+ ELSE IF '${POWER_CTRL } ' == 'sonoff'
123
+ Sonoff On
124
+ END
You can’t perform that action at this time.
0 commit comments