Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 1 | <div id="configuration-network"> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 2 | <div class="row column"> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 3 | <h1>BMC network settings</h1> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 4 | </div> |
| 5 | <form class="net-config__form" role="form" action=""> |
| 6 | <section class="row column"> |
| 7 | <div class="column small-12 page-header"> |
| 8 | <h2 class="inline h4">Common settings</h2> |
| 9 | </div> |
| 10 | <fieldset> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 11 | <div class="column small-12 large-3"> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 12 | <label for="net-config__mac">Hostname</label> |
| 13 | <input id="net-config__mac" type="text" readonly value="{{hostname}}"/> |
| 14 | </div> |
| 15 | <div class="column small-12 large-3"> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 16 | <label for="netinterface-select">Network interface</label> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 17 | <div id="netinterface-select" class="dropdown__wrapper"> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 18 | <button type="button" class="dropdown__button" ng-click="networkDevice = !networkDevice">{{selectedInterface}}</button> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 19 | <ul class="dropdown__list inline" ng-show="networkDevice"> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 20 | <li ng-repeat="interface_id in network.interface_ids"> |
| 21 | <button type="button" ng-click="selectInterface(interface_id);">{{interface_id}}</button> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 22 | </li> |
| 23 | </ul> |
| 24 | </div> |
| 25 | </div> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 26 | <div class="column small-12 large-3"> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 27 | <label for="net-config__host">MAC address</label> |
| 28 | <input id="net-config__host" type="text" ng-model="interface.MACAddress"/> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 29 | </div> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 30 | <div class="column small-12 large-3"> |
| 31 | <label for="net-config__domain">Domain name</label> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 32 | <input id="net-config__domain" type="text" ng-model="interface.DomainName"/> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 33 | </div> |
| 34 | </fieldset> |
| 35 | </section> |
| 36 | <section class="row column"> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 37 | <div class="column small-12 page-header"> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 38 | <h2 class="inline h4">IPV4 settings</h2> |
| 39 | </div> |
| 40 | <fieldset> |
| 41 | <div class="row column"> |
| 42 | <label class="control-radio" for="dhcp-address">Obtain an IP address automatically using DHCP |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 43 | <input type="radio" name="ip-address" id="dhcp-address" ng-checked="true" ng-model="interface.DHCPEnabled" ng-value="true"> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 44 | <span class="control__indicator control__indicator-on"></span> |
| 45 | </label> |
| 46 | </div> |
| 47 | <div class="row column"> |
| 48 | <label class="control-radio" for="static-ip-address">Assign a static IP address |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 49 | <input type="radio" name="ip-address" id="static-ip-address" ng-model="interface.DHCPEnabled" ng-value="false"/> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 50 | <span class="control__indicator control__indicator-on"></span> |
| 51 | </label> |
| 52 | </div> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 53 | <fieldset class="net-config__static-ip-wrap" ng-repeat="ipv4 in interface.ipv4.values"> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 54 | <div class="column small-12 large-4"> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 55 | <label for="net-config__ipv4-address" class="inline">IPV4 address</label> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 56 | <input id="net-config__ipv4-address" type="text" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Address"/> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 57 | </div> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 58 | <div class="column small-12 large-4"> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 59 | <label for="net-config__subnet" class="inline">Gateway</label> |
| 60 | <input id="net-config__subnet" type="text" ng-disabled="interface.DHCPEnabled" value="" ng-model="ipv4.Gateway"/> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 61 | </div> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 62 | <div class="column small-12 large-4"> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 63 | <label for="net-config__default-gateway" class="inline">Origin</label> |
| 64 | <input id="net-config__default-gateway" type="text" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Origin"/> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 65 | </div> |
| 66 | </fieldset> |
| 67 | </fieldset> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 68 | </section> |
| 69 | <section class="row column"> |
| 70 | <div class="column small-12 page-header"> |
| 71 | <h2 class="inline h4">DNS settings</h2> |
| 72 | </div> |
| 73 | <fieldset> |
| 74 | <div class="column small-12 large-4"> |
Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame] | 75 | <ul> |
| 76 | <li ng-repeat="dns in interface.Nameservers track by $index"> |
| 77 | <label for="net-config__prime-dns">DNS Server {{$index+1}}</label>{{dns}} |
| 78 | <br/> |
| 79 | </li> |
| 80 | </ul> |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 81 | </div> |
| 82 | </fieldset> |
| 83 | <div class="network-config__submit-wrapper"> |
Gunnar Mills | d01504c | 2018-05-03 13:01:51 -0500 | [diff] [blame^] | 84 | <button type="button" class="btn-primary inline" ng-click="confirm_settings=true;">Save settings</button> |
Gunnar Mills | 9a0094d | 2018-05-02 21:50:56 -0500 | [diff] [blame] | 85 | <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 86 | </div> |
Gunnar Mills | 7ddc727 | 2018-04-12 16:12:03 -0500 | [diff] [blame] | 87 | <p class="success-msg set_network_success" ng-show="set_network_success" role="alert">Success! Network settings changed!</p> |
| 88 | <p class="set_network_error error-msg" ng-show="set_network_error" role="alert">Error setting {{set_network_error}}!</p> |
Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 89 | </section> |
| 90 | </form> |
Gunnar Mills | 7ddc727 | 2018-04-12 16:12:03 -0500 | [diff] [blame] | 91 | </div> |
Gunnar Mills | d01504c | 2018-05-03 13:01:51 -0500 | [diff] [blame^] | 92 | <section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirm_settings}"> |
| 93 | <div class="modal__tftp-unreachable" role="document"> |
| 94 | <div class="screen-reader-offscreen modal-description">Change network settings</div><!-- accessibility only; used for screen readers --> |
| 95 | <div class="page-header "> |
| 96 | <span class="icon icon__warning inline"><span class="accessible-text" role="alert">Warning</span></span> |
| 97 | <h1 class="modal-title h4 inline">Change network settings</h1> |
| 98 | </div> |
| 99 | <div class="modal__content"> |
| 100 | <p>Changing network settings may cause the system to become unavailable (e.g. changing the BMC IP address). |
| 101 | Proceed with caution and make note of any new settings that may affect connectivity.</p> |
| 102 | </div> |
| 103 | <div class="modal__button-wrapper"> |
| 104 | <button class="inline btn-secondary" ng-click="confirm_settings=false;">Cancel</button> |
| 105 | <button class="inline btn-primary" ng-click="setNetworkSettings()">Continue</button> |
| 106 | </div> |
| 107 | </div> |
| 108 | </section> |