blob: 76dbfe2d5916f84a5955be173e2a3b2771f324d9 [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">
Michael Davisb27188e2017-07-27 14:35:00 -050012 <p>Use the following tables to manage firmware image files. The image file that is listed as Active is used the next time that the device is booted. To change the boot order for the image, click the arrow icons.</p>
13 <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 available for use.</p>
Michael Davis9486f542017-05-30 15:35:31 -050014</div>
Iftekharul Islamc0161392017-06-14 15:46:15 -050015<firmware-list title="BMC images" version="bmcActiveVersion" firmwares="firmwares" filter-by="filters.bmc"></firmware-list>
16<firmware-list title="Server images" version="hostActiveVersion" firmwares="firmwares" filter-by="filters.host"></firmware-list>
Michael Davis9486f542017-05-30 15:35:31 -050017<div class="row column" id="upload">
Michael Davis43366db2017-05-15 18:12:35 -050018 <div class="column small-12 page-header">
Michael Davisb27188e2017-07-27 14:35:00 -050019 <h2 class="inline h3 bold">Specify image file location</h2>
Michael Davis43366db2017-05-15 18:12:35 -050020 </div>
21 <form id="firmware__upload-form" role="form" class="firmware__upload-form">
Michael Davisb27188e2017-07-27 14:35:00 -050022 <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 -050023 <div class=" column firmware__upload-station">
Michael Davisb27188e2017-07-27 14:35:00 -050024 <h3 class="h4 bold">Upload image file from workstation</h3>
25 <p>Select the image file saved on the workstation storage medium to upload to the server BMC.</p>
Michael Davis9486f542017-05-30 15:35:31 -050026 <label for="file-upload" class="inline firmware__upload-chooser">
Iftekharul Islamc0161392017-06-14 15:46:15 -050027 <input id="file-upload" type="file" file="file" class="hide" onchange="angular.element(this).scope().fileNameChanged()"/>
Michael Davis9486f542017-05-30 15:35:31 -050028 <span class="button btn-secondary inline">Choose a file</span>
Iftekharul Islamc0161392017-06-14 15:46:15 -050029 <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 -050030 </label>
Iftekharul Islamc0161392017-06-14 15:46:15 -050031 <input type="button" value="Upload firmware" class="inline button btn-primary float-right" ng-click="upload()"/>
32 <div class="inline uploading" ng-show="uploading">Upload in progress...</div>
Michael Davis43366db2017-05-15 18:12:35 -050033 </div>
Michael Davis9486f542017-05-30 15:35:31 -050034 <div class=" column firmware__upload-tftp">
Michael Davisb27188e2017-07-27 14:35:00 -050035 <h3 class="h4 bold">Download image file from TFTP server</h3>
36 <p>Specify both the TFTP server IP address and the image file name stored on it to download to the server BMC.</p>
Michael Davis43366db2017-05-15 18:12:35 -050037 <fieldset>
Michael Davis9486f542017-05-30 15:35:31 -050038 <div class="row">
39 <div class="column small-12 large-4">
Michael Davisb27188e2017-07-27 14:35:00 -050040 <label for="tftp-ip">TFTP Server IP address</label>
Michael Davis9486f542017-05-30 15:35:31 -050041 <input name="tftp-ip" id="tftp-ip" type="number"/>
42 </div>
43 <div class="column small-12 large-4">
44 <label for="tftp-file-name">File name</label>
45 <input name="tftp-file-name" id="tftp-file-name" type="text"/>
46 </div>
47 <div class="column small-12 large-4">
Iftekharul Islamc0161392017-06-14 15:46:15 -050048 <input type="submit" value="Download firmware" class="inline button btn-primary float-right"/>
Michael Davis9486f542017-05-30 15:35:31 -050049 </div>
50 </div>
Iftekharul Islamc0161392017-06-14 15:46:15 -050051 <div class="inline uploading" ng-show="downloading">Downloading in progress...</div>
Michael Davis43366db2017-05-15 18:12:35 -050052 </fieldset>
53 </div>
Michael Davis43366db2017-05-15 18:12:35 -050054 </form>
Michael Davis9486f542017-05-30 15:35:31 -050055</div>
56
57<!-- Firmware modals -->
Iftekharul Islamc0161392017-06-14 15:46:15 -050058<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 -050059 <div class="modal__upload-fail" role="document">
Iftekharul Islamc0161392017-06-14 15:46:15 -050060 <div class="screen-reader-offscreen modal-description">{{error.modal_title}}</div><!-- accessibility only; used for screen readers -->
Michael Davis9486f542017-05-30 15:35:31 -050061 <div class="page-header ">
Iftekharul Islamc0161392017-06-14 15:46:15 -050062 <span class="icon icon__warning inline"><span class="accessible-text" role="alert">{{error.type}}</span></span>
63 <h1 class="modal-title h4 inline">{{error.title}}</h1>
Michael Davis9486f542017-05-30 15:35:31 -050064 </div>
65 <div class="modal__content">
Iftekharul Islamc0161392017-06-14 15:46:15 -050066 <p>{{error.desc}}</p>
Michael Davis9486f542017-05-30 15:35:31 -050067 </div>
68 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -050069 <button class="inline btn-primary" ng-click="display_error = false;">Close</button>
Michael Davis9486f542017-05-30 15:35:31 -050070 </div>
71 </div>
72</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -050073
74<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 -050075 <div class="modal__tftp-unreachable" role="document">
76 <div class="screen-reader-offscreen modal-description">Delete firmware image</div><!-- accessibility only; used for screen readers -->
77 <div class="page-header ">
78 <span class="icon icon__warning inline"><span class="accessible-text" role="alert">Warning</span></span>
79 <h1 class="modal-title h4 inline">Delete image</h1>
80 </div>
81 <div class="modal__content">
Iftekharul Islamc0161392017-06-14 15:46:15 -050082 <p>Delete firmware {{delete_image_version}}?</p>
Michael Davis9486f542017-05-30 15:35:31 -050083 </div>
84 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -050085 <button class="inline btn-secondary" ng-click="confirm_delete=false;">Cancel</button>
86 <button class="inline btn-primary" ng-click="confirmDeleteImage()">Continue</button>
Michael Davis9486f542017-05-30 15:35:31 -050087 </div>
88 </div>
89</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -050090
91<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 -050092 <div class="modal__upload" role="document">
93 <div class="screen-reader-offscreen modal-description">Upload image file modal</div><!-- accessibility only; used for screen readers -->
94 <div class="page-header ">
95 <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg"
96 viewBox="0 0 32 32"><path
97 d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path
98 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>
99 Upload image file
100 </h1>
101 </div>
102 <div class="modal__content">
103 <p>Uploading this image may replace a non-active image, and prevent rollback from the current active image
104 to the previous image.</p>
105 </div>
106 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -0500107 <button class="inline btn-secondary" ng-click="confirm_upload_image = false;">Cancel</button>
108 <button class="inline btn-primary" ng-click="confirmUpload()">Continue</button>
Michael Davis9486f542017-05-30 15:35:31 -0500109 </div>
110 </div>
111</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -0500112<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 -0500113 <div class="modal__reboot" role="document">
114 <div class="screen-reader-offscreen modal-description">Server reboot required modal</div><!-- accessibility only; used for screen readers -->
115 <div class="page-header ">
116 <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg"
117 viewBox="0 0 32 32"><path
118 d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path
119 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>
120 Server reboot required
121 </h1>
122 </div>
123 <div class="modal__content">
124 <p>You specified a new primary firmware image. This change will not take effect until the server is powered
125 down and restarted.</p>
126 </div>
127 <a href="#/server-control/power-operations" class="bold modal__link">Go to power operations page</a>
128 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -0500129 <button class="inline btn-secondary" ng-click="reboot_confirm=false;">Cancel</button>
130 <button class="inline btn-primary" ng-click="confirmWarmReboot()">Warm reboot</button>
Michael Davis9486f542017-05-30 15:35:31 -0500131 </div>
132 </div>
133</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -0500134<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 -0500135 <div class="modal__preserve-settings" role="document">
136 <div class="screen-reader-offscreen modal-description">Preserve setting modal</div><!-- accessibility only; used for screen readers -->
137 <div class="page-header ">
138 <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg"
139 viewBox="0 0 32 32"><path
140 d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path
141 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>
142 Preserve settings
143 </h1>
144 </div>
145 <div class="modal__content">
146 <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>
147 <form>
148 <fieldset>
149 <div class="row column">
150 <label class="control-radio bold" for="preserve-settings">Preserve network settings
151 <input type="radio" name="preserve-settings" id="preserve-settings" ng-checked="true" ng-model="dhcp" ng-value="true" ng-init="dhcp=true"/>
152 <span class="control__indicator control__indicator-on"></span>
153 </label>
154 </div>
155 <div class="row column">
156 <label class="control-radio bold" for="reset-settings">Reset all user and network settings
157 <input type="radio" name="reset-settings" id="reset-settings" ng-model="dhcp" ng-value="false"/>
158 <span class="control__indicator control__indicator-on"></span>
159 </label>
160 </div>
161 </fieldset>
162 </form>
163 </div>
164 <div class="modal__button-wrapper">
Iftekharul Islamc0161392017-06-14 15:46:15 -0500165 <button class="inline btn-secondary" ng-click="preserve_settings_confirm=false;">Cancel</button>
166 <button class="inline btn-primary" ng-click="preserveSettingsConfirmed()">Continue</button>
Michael Davis9486f542017-05-30 15:35:31 -0500167 </div>
168 </div>
169</section>
Iftekharul Islamc0161392017-06-14 15:46:15 -0500170<div class="modal-overlay" tabindex="-1" ng-class="{'active': (display_error || confirm_upload_image || reboot_confirm || preserve_settings_confirm)}"></div>