blob: edf8c16b416067696a805f836fa637b18f22a1ab [file] [log] [blame]
Michael Davis43366db2017-05-15 18:12:35 -05001<div id="firmware">
2 <div class="row column">
3 <h1>Firmware</h1>
4 </div>
5</div>
Michael Davis9486f542017-05-30 15:35:31 -05006<div class="row column">
Michael Davis43366db2017-05-15 18:12:35 -05007 <div class="column small-12 page-header">
Michael Davis9486f542017-05-30 15:35:31 -05008 <h1 class="inline h4">Manage BMC and server firmware</h1>
Michael Davis43366db2017-05-15 18:12:35 -05009 </div>
Michael Davis9486f542017-05-30 15:35:31 -050010</div>
11<div class="row column">
12 <p>Use the tables at the top of the page to manage firmware images that are currently available on the BMC. The
13 image at the top of the table is the Primary image, which will be used the next time the device is
Michael Davis8af8d242017-07-20 15:22:01 -050014 booted. To change which image is Primary, move the image you want to use as the Primary to the top of the table using the arrows.</p>
15 <p><a ng-click="gotoAnchor()">Scroll down to upload an image file</a> to transfer a new firmware image to the BMC. After uploading a new image, Activate it to make it availbe for use.</p>
Michael Davis9486f542017-05-30 15:35:31 -050016</div>
Iftekharul Islamc0161392017-06-14 15:46:15 -050017<firmware-list title="BMC images" version="bmcActiveVersion" firmwares="firmwares" filter-by="filters.bmc"></firmware-list>
18<firmware-list title="Server images" version="hostActiveVersion" firmwares="firmwares" filter-by="filters.host"></firmware-list>
Michael Davis9486f542017-05-30 15:35:31 -050019<div class="row column" id="upload">
Michael Davis43366db2017-05-15 18:12:35 -050020 <div class="column small-12 page-header">
21 <h2 class="inline h3 bold">Upload firmware image</h2>
22 </div>
23 <form id="firmware__upload-form" role="form" class="firmware__upload-form">
Michael Davis8af8d242017-07-20 15:22:01 -050024 <p>Specify an image file located on your workstation or a TFTP server. An image file may contain firmware images for the server, BMC, or other hardware devices. Each image that you upload will be unpacked from the image file, and added to the appropriate list above.</p>
Michael Davis9486f542017-05-30 15:35:31 -050025 <div class=" column firmware__upload-station">
26 <h3 class="h4 bold">Upload from workstation</h3>
27 <p>Optional text area. Can be used to explain about updating openBMC firmware from workstation. This could
28 be step-by-step instruction. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et</p>
29 <label for="file-upload" class="inline firmware__upload-chooser">
Iftekharul Islamc0161392017-06-14 15:46:15 -050030 <input id="file-upload" type="file" file="file" class="hide" onchange="angular.element(this).scope().fileNameChanged()"/>
Michael Davis9486f542017-05-30 15:35:31 -050031 <span class="button btn-secondary inline">Choose a file</span>
Iftekharul Islamc0161392017-06-14 15:46:15 -050032 <span class="inline firmware__upload-file-name"><span ng-if="!file">No file chosen</span><span ng-if="file.name !== undefined">{{file.name}}</span></span>
Michael Davis43366db2017-05-15 18:12:35 -050033 </label>
Iftekharul Islamc0161392017-06-14 15:46:15 -050034 <input type="button" value="Upload firmware" class="inline button btn-primary float-right" ng-click="upload()"/>
35 <div class="inline uploading" ng-show="uploading">Upload in progress...</div>
Michael Davis43366db2017-05-15 18:12:35 -050036 </div>
Michael Davis9486f542017-05-30 15:35:31 -050037 <div class=" column firmware__upload-tftp">
38 <h3 class="h4 bold">Download from TFTP server</h3>
39 <p>Optional text area. Can be used to explain about updating openBMC firmware from workstation. This could
40 be step-by-step instruction. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et</p>
Michael Davis43366db2017-05-15 18:12:35 -050041 <fieldset>
Michael Davis9486f542017-05-30 15:35:31 -050042 <div class="row">
43 <div class="column small-12 large-4">
44 <label for="tftp-ip">Server IP address</label>
45 <input name="tftp-ip" id="tftp-ip" type="number"/>
46 </div>
47 <div class="column small-12 large-4">
48 <label for="tftp-file-name">File name</label>
49 <input name="tftp-file-name" id="tftp-file-name" type="text"/>
50 </div>
51 <div class="column small-12 large-4">
Iftekharul Islamc0161392017-06-14 15:46:15 -050052 <input type="submit" value="Download firmware" class="inline button btn-primary float-right"/>
Michael Davis9486f542017-05-30 15:35:31 -050053 </div>
54 </div>
Iftekharul Islamc0161392017-06-14 15:46:15 -050055 <div class="inline uploading" ng-show="downloading">Downloading in progress...</div>
Michael Davis43366db2017-05-15 18:12:35 -050056 </fieldset>
57 </div>
Michael Davis43366db2017-05-15 18:12:35 -050058 </form>
Michael Davis9486f542017-05-30 15:35:31 -050059</div>
60
61<!-- Firmware modals -->
Iftekharul Islamc0161392017-06-14 15:46:15 -050062<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': display_error}">
Michael Davis9486f542017-05-30 15:35:31 -050063 <div class="modal__upload-fail" role="document">
Iftekharul Islamc0161392017-06-14 15:46:15 -050064 <div class="screen-reader-offscreen modal-description">{{error.modal_title}}</div><!-- accessibility only; used for screen readers -->
Michael Davis9486f542017-05-30 15:35:31 -050065 <div class="page-header ">
Iftekharul Islamc0161392017-06-14 15:46:15 -050066 <span class="icon icon__warning inline"><span class="accessible-text" role="alert">{{error.type}}</span></span>
67 <h1 class="modal-title h4 inline">{{error.title}}</h1>
Michael Davis9486f542017-05-30 15:35:31 -050068 </div>
69 <div class="modal__content">
Iftekharul Islamc0161392017-06-14 15:46:15 -050070 <p>{{error.desc}}</p>
Michael Davis9486f542017-05-30 15:35:31 -050071 </div>
72 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -050073 <button class="inline btn-primary" ng-click="display_error = false;">Close</button>
Michael Davis9486f542017-05-30 15:35:31 -050074 </div>
75 </div>
76</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -050077
78<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirm_delete}">
Michael Davis9486f542017-05-30 15:35:31 -050079 <div class="modal__tftp-unreachable" role="document">
80 <div class="screen-reader-offscreen modal-description">Delete firmware image</div><!-- accessibility only; used for screen readers -->
81 <div class="page-header ">
82 <span class="icon icon__warning inline"><span class="accessible-text" role="alert">Warning</span></span>
83 <h1 class="modal-title h4 inline">Delete image</h1>
84 </div>
85 <div class="modal__content">
Iftekharul Islamc0161392017-06-14 15:46:15 -050086 <p>Delete firmware {{delete_image_version}}?</p>
Michael Davis9486f542017-05-30 15:35:31 -050087 </div>
88 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -050089 <button class="inline btn-secondary" ng-click="confirm_delete=false;">Cancel</button>
90 <button class="inline btn-primary" ng-click="confirmDeleteImage()">Continue</button>
Michael Davis9486f542017-05-30 15:35:31 -050091 </div>
92 </div>
93</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -050094
95<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirm_upload_image}">
Michael Davis9486f542017-05-30 15:35:31 -050096 <div class="modal__upload" role="document">
97 <div class="screen-reader-offscreen modal-description">Upload image file modal</div><!-- accessibility only; used for screen readers -->
98 <div class="page-header ">
99 <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg"
100 viewBox="0 0 32 32"><path
101 d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path
102 d="M16 2C8.269 2 2 8.269 2 16s6.269 14 14 14 14-6.269 14-14S23.731 2 16 2zm0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12z"/></svg></span>
103 Upload image file
104 </h1>
105 </div>
106 <div class="modal__content">
107 <p>Uploading this image may replace a non-active image, and prevent rollback from the current active image
108 to the previous image.</p>
109 </div>
110 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -0500111 <button class="inline btn-secondary" ng-click="confirm_upload_image = false;">Cancel</button>
112 <button class="inline btn-primary" ng-click="confirmUpload()">Continue</button>
Michael Davis9486f542017-05-30 15:35:31 -0500113 </div>
114 </div>
115</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -0500116<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': reboot_confirm}">
Michael Davis9486f542017-05-30 15:35:31 -0500117 <div class="modal__reboot" role="document">
118 <div class="screen-reader-offscreen modal-description">Server reboot required modal</div><!-- accessibility only; used for screen readers -->
119 <div class="page-header ">
120 <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg"
121 viewBox="0 0 32 32"><path
122 d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path
123 d="M16 2C8.269 2 2 8.269 2 16s6.269 14 14 14 14-6.269 14-14S23.731 2 16 2zm0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12z"/></svg></span>
124 Server reboot required
125 </h1>
126 </div>
127 <div class="modal__content">
128 <p>You specified a new primary firmware image. This change will not take effect until the server is powered
129 down and restarted.</p>
130 </div>
131 <a href="#/server-control/power-operations" class="bold modal__link">Go to power operations page</a>
132 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -0500133 <button class="inline btn-secondary" ng-click="reboot_confirm=false;">Cancel</button>
134 <button class="inline btn-primary" ng-click="confirmWarmReboot()">Warm reboot</button>
Michael Davis9486f542017-05-30 15:35:31 -0500135 </div>
136 </div>
137</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -0500138<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': preserve_settings_confirm}">
Michael Davis9486f542017-05-30 15:35:31 -0500139 <div class="modal__preserve-settings" role="document">
140 <div class="screen-reader-offscreen modal-description">Preserve setting modal</div><!-- accessibility only; used for screen readers -->
141 <div class="page-header ">
142 <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg"
143 viewBox="0 0 32 32"><path
144 d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path
145 d="M16 2C8.269 2 2 8.269 2 16s6.269 14 14 14 14-6.269 14-14S23.731 2 16 2zm0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12z"/></svg></span>
146 Preserve settings
147 </h1>
148 </div>
149 <div class="modal__content">
150 <p>Switching to a new BMC firmware image will erase current user settings. Network settings will be preserved unless you choose to reset all settings.</p>
151 <form>
152 <fieldset>
153 <div class="row column">
154 <label class="control-radio bold" for="preserve-settings">Preserve network settings
155 <input type="radio" name="preserve-settings" id="preserve-settings" ng-checked="true" ng-model="dhcp" ng-value="true" ng-init="dhcp=true"/>
156 <span class="control__indicator control__indicator-on"></span>
157 </label>
158 </div>
159 <div class="row column">
160 <label class="control-radio bold" for="reset-settings">Reset all user and network settings
161 <input type="radio" name="reset-settings" id="reset-settings" ng-model="dhcp" ng-value="false"/>
162 <span class="control__indicator control__indicator-on"></span>
163 </label>
164 </div>
165 </fieldset>
166 </form>
167 </div>
168 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -0500169 <button class="inline btn-secondary" ng-click="preserve_settings_confirm=false;">Cancel</button>
170 <button class="inline btn-primary" ng-click="preserveSettingsConfirmed()">Continue</button>
Michael Davis9486f542017-05-30 15:35:31 -0500171 </div>
172 </div>
173</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -0500174<div class="modal-overlay" tabindex="-1" ng-class="{'active': (display_error || confirm_upload_image || reboot_confirm || preserve_settings_confirm)}"></div>