summaryrefslogtreecommitdiffstats
path: root/app/configuration/controllers/firmware-controller.html
blob: 9c0905bdbcf3609e8bad81c089482d7b4e4798a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<loader loading="loading"></loader>
<div class="row column">
  <h1>Firmware</h1>
  <div class="column small-12 page-header">
    <h2 class="inline h4">Manage BMC and server firmware</h2>
  </div>
</div>
<div class="row column">
  <p>Use the following tables to manage firmware image files. The image file that is listed at the top, the image with the highest boot priority, is used the next time that the device is booted. To change the boot priority for the image, click the arrow icons.</p>
  <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>
</div>
<firmware-list title="BMC images" version="bmcActiveVersion" firmwares="firmwares" filter-by="filters.bmc"></firmware-list>
<firmware-list title="Server images" version="hostActiveVersion" firmwares="firmwares" filter-by="filters.host"></firmware-list>
<div class="row column" id="upload">
  <div class="column small-12 page-header">
    <h2 class="inline h3 bold">Specify image file location</h2>
  </div>
  <form id="firmware__upload-form" role="form" class="firmware__upload-form">
    <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>
    <div class=" column firmware__upload-station">
      <h3 class="h4 bold">Upload image file from workstation</h3>
      <p>Select the image file saved on the workstation storage medium to upload to the server BMC.</p>
      <label for="file-upload" class="inline firmware__upload-chooser">
        <input id="file-upload" type="file" file="file" class="hide" onchange="angular.element(this).scope().fileNameChanged()"/>
        <span class="button btn-secondary inline">Choose a file</span>
        <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>
      </label>
      <input type="button" value="Upload firmware" class="inline button btn-primary float-right" ng-click="upload()"/>
      <div class="inline uploading" ng-show="uploading">Upload in progress...</div>
    </div>
    <div class=" column firmware__upload-tftp">
      <h3 class="h4 bold">Download image file from TFTP server</h3>
      <p>Specify both the TFTP server IP address and the image file name stored on it to download to the server BMC.</p>
      <fieldset>
        <div class="row">
          <div class="column small-12 large-4">
            <label for="tftp-ip">TFTP Server IP address</label>
            <input name="tftp-ip" id="tftp-ip" type="text"  ng-model="download_host"/>
          </div>
          <div class="column small-12 large-4">
            <label for="tftp-file-name">File name</label>
            <input name="tftp-file-name" id="tftp-file-name" type="text"  ng-model="download_filename"/>
          </div>
          <div class="column small-12 large-4">
            <input type="button" value="Download firmware" class="inline button btn-primary float-right" ng-click="download()"/>
          </div>
        </div>
        <div class="inline uploading" ng-show="downloading">Downloading in progress...</div>
      </fieldset>
    </div>
  </form>
</div>

<!-- Firmware modals -->

<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirm_priority}">
  <div class="modal__tftp-unreachable" role="document">
    <div class="screen-reader-offscreen modal-description">Update image priority</div><!-- accessibility only; used for screen readers -->
    <div class="page-header ">
      <span class="icon icon__warning inline"><span class="accessible-text" role="alert">Warning</span></span>
      <h1 class="modal-title h4 inline">Change image priority</h1>
    </div>
    <div class="modal__content">
      <p>Change firmware {{priority_image_version}} priority?</p>
    </div>
    <div class="modal__button-wrapper">
      <button class="inline btn-secondary" ng-click="confirm_priority=false;">Cancel</button>
      <button class="inline btn-primary" ng-click="confirmChangePriority()">Continue</button>
    </div>
  </div>
</section>

<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirm_delete}">
  <div class="modal__tftp-unreachable" role="document">
    <div class="screen-reader-offscreen modal-description">Delete firmware image</div><!-- accessibility only; used for screen readers -->
    <div class="page-header ">
      <span class="icon icon__warning inline"><span class="accessible-text" role="alert">Warning</span></span>
      <h1 class="modal-title h4 inline">Delete image</h1>
    </div>
    <div class="modal__content">
      <p>Delete firmware {{delete_image_version}}?</p>
    </div>
    <div class="modal__button-wrapper">
      <button class="inline btn-secondary" ng-click="confirm_delete=false;">Cancel</button>
      <button class="inline btn-primary" ng-click="confirmDeleteImage()">Continue</button>
    </div>
  </div>
</section>

<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': activate_confirm}">
  <div class="modal__activate" role="document">
    <div class="screen-reader-offscreen modal-description">Activate modal</div><!-- accessibility only; used for screen readers -->
    <div class="page-header ">
      <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg"
          viewBox="0 0 32 32"><path
          d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path
          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>
        <!-- We call "Host" firmware "server" firmware -->
        Confirm {{activate_image_type == 'Host' ? 'server' : activate_image_type}} firmware file activation
      </h1>
    </div>
    <div class="modal__content">
      <div ng-switch on="activate_image_type">
        <p ng-switch-when="BMC">When you activate the BMC firmware file, {{activate_image_version}}, the BMC must be rebooted before it will operate with the new firmware code. Note that when you reboot the BMC, the BMC will be unavailable for several minutes and you must log in again.</p>
        <p ng-switch-when="Host">When you activate the server firmware file, {{activate_image_version}}, the new firmware will not operate until the next time the server boots.</p>
      </div>
      <form ng-if="activate_image_type == 'BMC'">
        <fieldset>
          <div class="row column">
            <label class="control-radio bold" for="activate-without-reboot">Activate firmware file without rebooting BMC
              <input type="radio" name="activate-without-reboot" id="activate-without-reboot" ng-model="activate.reboot" ng-value="false"/>
              <span class="control__indicator control__indicator-on"></span>
            </label>
          </div>
          <div class="row column">
            <label class="control-radio bold" for="activate-with-reboot">Activate firmware file and automatically reboot BMC
              <input type="radio" name="activate-with-reboot" id="activate-with-reboot" ng-model="activate.reboot" ng-value="true"/>
              <span class="control__indicator control__indicator-on"></span>
            </label>
          </div>
        </fieldset>
      </form>
      <form ng-if="activate_image_type == 'Host'">
        <fieldset>
          <div class="row column">
            <label class="control-radio bold" for="activate-host-without-reboot">Activate firmware file without {{isServerOff() ? "booting" : "rebooting"}} server
              <input type="radio" name="activate-host-without-reboot" id="activate-host-without-reboot" ng-model="activate.reboot" ng-value="false"/>
              <span class="control__indicator control__indicator-on"></span>
            </label>
          </div>
          <div class="row column">
            <label class="control-radio bold" for="activate-host-with-reboot">Activate firmware file and automatically {{isServerOff() ? "boot" : "reboot"}} server
              <input type="radio" name="activate-host-with-reboot" id="activate-host-with-reboot" ng-model="activate.reboot" ng-value="true"/>
              <span class="control__indicator control__indicator-on"></span>
            </label>
          </div>
        </fieldset>
      </form>
    </div>
    <div class="modal__button-wrapper">
      <button class="inline btn-secondary" ng-click="activate_confirm=false;">Cancel</button>
      <button class="inline btn-primary" ng-click="activateConfirmed()">Continue</button>
    </div>
  </div>
</section>
<div class="modal-overlay" tabindex="-1" ng-class="{'active': (confirm_priority || activate_confirm || confirm_delete)}"></div>
OpenPOWER on IntegriCloud