1<div id="configuration-network"> 2 <div class="row column"> 3 <h1>BMC network settings</h1> 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> 11 <div class="column small-12 large-3"> 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"> 16 <label for="netinterface-select">Network interface</label> 17 <div id="netinterface-select" class="dropdown__wrapper"> 18 <button type="button" class="dropdown__button" ng-click="networkDevice = !networkDevice">{{selectedInterface}}</button> 19 <ul class="dropdown__list inline" ng-show="networkDevice"> 20 <li ng-repeat="interface_id in network.interface_ids"> 21 <button type="button" ng-click="selectInterface(interface_id);">{{interface_id}}</button> 22 </li> 23 </ul> 24 </div> 25 </div> 26 <div class="column small-12 large-3"> 27 <label for="net-config__host">MAC address</label> 28 <input id="net-config__host" type="text" ng-model="interface.MACAddress"/> 29 </div> 30 <div class="column small-12 large-3"> 31 <label for="net-config__domain">Domain name</label> 32 <input id="net-config__domain" type="text" ng-model="interface.DomainName"/> 33 </div> 34 </fieldset> 35 </section> 36 <section class="row column"> 37 <div class="column small-12 page-header"> 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 43 <input type="radio" name="ip-address" id="dhcp-address" ng-checked="true" ng-model="interface.DHCPEnabled" ng-value="true"> 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 49 <input type="radio" name="ip-address" id="static-ip-address" ng-model="interface.DHCPEnabled" ng-value="false"/> 50 <span class="control__indicator control__indicator-on"></span> 51 </label> 52 </div> 53 <fieldset class="net-config__static-ip-wrap" ng-repeat="ipv4 in interface.ipv4.values"> 54 <div class="column small-12 large-4"> 55 <label for="net-config__ipv4-address" class="inline">IPV4 address</label> 56 <input id="net-config__ipv4-address" type="text" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Address"/> 57 </div> 58 <div class="column small-12 large-4"> 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"/> 61 </div> 62 <div class="column small-12 large-4"> 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"/> 65 </div> 66 </fieldset> 67 </fieldset> 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"> 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> 81 </div> 82 </fieldset> 83 <div class="network-config__submit-wrapper"> 84 <button type="button" class="btn-primary inline" ng-click="setNetworkSettings()">Save settings</button> 85 <button type="button" class="btn-secondary inline">Cancel</button> 86 </div> 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> 89 </section> 90 </form> 91</div> 92