184981f0aSGunnar Mills<loader loading="loading"></loader> 2cd789508SIftekharul Islam<div id="configuration-network"> 3cd789508SIftekharul Islam <div class="row column"> 451946552SMichael Davis <h1>BMC network settings</h1> 5cd789508SIftekharul Islam </div> 6a960c8c7SMichael Davis <form class="net-config__form" role="form" action=""> 7*1ffa209eSDerick Montague <fieldset class="net-config__fieldset row column"> 8*1ffa209eSDerick Montague <legend class="column small-12 page-header h2"> 9*1ffa209eSDerick Montague Common settings 10*1ffa209eSDerick Montague </legend> 11*1ffa209eSDerick Montague <div class="net-config__fieldset-content"> 1251946552SMichael Davis <div class="column small-12 large-3"> 132a489554SIftekharul Islam <label for="net-config__mac">Hostname</label> 14309e06abSGunnar Mills <input id="net-config__mac" type="text" ng-model="hostname" /> 152a489554SIftekharul Islam </div> 162a489554SIftekharul Islam <div class="column small-12 large-3"> 1751946552SMichael Davis <label for="netinterface-select">Network interface</label> 18a960c8c7SMichael Davis <div id="netinterface-select" class="dropdown__wrapper"> 19*1ffa209eSDerick Montague <button type="button" class="dropdown__button" 20*1ffa209eSDerick Montague ng-click="networkDevice = !networkDevice">{{selectedInterface}}</button> 21a960c8c7SMichael Davis <ul class="dropdown__list inline" ng-show="networkDevice"> 222a489554SIftekharul Islam <li ng-repeat="interface_id in network.interface_ids"> 232a489554SIftekharul Islam <button type="button" ng-click="selectInterface(interface_id);">{{interface_id}}</button> 24a960c8c7SMichael Davis </li> 25a960c8c7SMichael Davis </ul> 26a960c8c7SMichael Davis </div> 27a960c8c7SMichael Davis </div> 2851946552SMichael Davis <div class="column small-12 large-3"> 292a489554SIftekharul Islam <label for="net-config__host">MAC address</label> 302a489554SIftekharul Islam <input id="net-config__host" type="text" ng-model="interface.MACAddress" /> 31a960c8c7SMichael Davis </div> 3251946552SMichael Davis <div class="column small-12 large-3"> 33e9f5fe77SGunnar Mills <label for="net-config__domain">Default Gateway</label> 34067a1cd1Sbeccabroek <input id="net-config__domain" type="text" ng-model="defaultGateway" /> 35a960c8c7SMichael Davis </div> 36a960c8c7SMichael Davis </div> 37*1ffa209eSDerick Montague </fieldset> 38*1ffa209eSDerick Montague <fieldset class="net-config__fieldset row column"> 39*1ffa209eSDerick Montague <legend class="column small-12 page-header h2"> 40*1ffa209eSDerick Montague IPV4 settings 41*1ffa209eSDerick Montague </legend> 42*1ffa209eSDerick Montague <div class="net-config__fieldset-content"> 43a960c8c7SMichael Davis <div class="row column"> 44a960c8c7SMichael Davis <label class="control-radio" for="dhcp-address">Obtain an IP address automatically using DHCP 45*1ffa209eSDerick Montague <input type="radio" name="ip-address" id="dhcp-address" ng-checked="true" ng-model="interface.DHCPEnabled" 46*1ffa209eSDerick Montague ng-value="true"> 47a960c8c7SMichael Davis <span class="control__indicator control__indicator-on"></span> 48a960c8c7SMichael Davis </label> 49a960c8c7SMichael Davis </div> 50a960c8c7SMichael Davis <div class="row column"> 51a960c8c7SMichael Davis <label class="control-radio" for="static-ip-address">Assign a static IP address 52*1ffa209eSDerick Montague <input type="radio" name="ip-address" id="static-ip-address" ng-model="interface.DHCPEnabled" 53*1ffa209eSDerick Montague ng-value="false" /> 54a960c8c7SMichael Davis <span class="control__indicator control__indicator-on"></span> 55a960c8c7SMichael Davis </label> 56a960c8c7SMichael Davis </div> 57971ac1aaSbeccabroek <div class="row column network-config__ipv4-wrap"> 58*1ffa209eSDerick Montague <fieldset class="net-config__fieldset net-config__static-ip-wrap" ng-repeat="ipv4 in interface.ipv4.values track by $index"> 59971ac1aaSbeccabroek <div class="column small-12 large-3"> 60*1ffa209eSDerick Montague <label for="ipv4-address-{{$index+1}}">IPV4 address</label> 61*1ffa209eSDerick Montague <input id="ipv4-address-{{$index+1}}" ng-change="ipv4.updateAddress = true" type="text" 62*1ffa209eSDerick Montague ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Address" /> 63a960c8c7SMichael Davis </div> 64971ac1aaSbeccabroek <div class="column small-12 large-3"> 65*1ffa209eSDerick Montague <label for="ipv4-gateway-{{$index+1}}">Gateway</label> 66*1ffa209eSDerick Montague <input id="ipv4-gateway-{{$index+1}}" ng-change="ipv4.updateGateway = true" type="text" 67*1ffa209eSDerick Montague ng-disabled="interface.DHCPEnabled" value="" ng-model="ipv4.Gateway" /> 68a960c8c7SMichael Davis </div> 696549114eSGunnar Mills <!-- This netmask prefix length max only works with IPV4 --> 70971ac1aaSbeccabroek <div class="column small-12 large-6"> 71*1ffa209eSDerick Montague <label for="ipv4-prefix-{{$index+1}}">Netmask Prefix Length</label> 72*1ffa209eSDerick Montague <input id="ipv4-prefix-{{$index+1}}" class="column small-6" ng-change="ipv4.updatePrefix = true" 73*1ffa209eSDerick Montague type="number" min="1" max="32" step="1" ng-disabled="interface.DHCPEnabled" 74*1ffa209eSDerick Montague ng-model="ipv4.PrefixLength" /> 75971ac1aaSbeccabroek <button class="network-config_remove-button inline" ng-click="removeIpv4Address($index)">Remove</button> 76a960c8c7SMichael Davis </div> 77a960c8c7SMichael Davis </fieldset> 781a0e7d06Sbeccabroek <div class="row column"> 791a0e7d06Sbeccabroek <div class="column small-12"> 801a0e7d06Sbeccabroek <button type="button" class="btn-primary inline" ng-click="addIpv4Field()">Add IPV4 address</button> 811a0e7d06Sbeccabroek </div> 821a0e7d06Sbeccabroek </div> 83971ac1aaSbeccabroek </div> 8451946552SMichael Davis </div> 85*1ffa209eSDerick Montague </fieldset> 86*1ffa209eSDerick Montague <fieldset class="net-config__fieldset row column"> 87*1ffa209eSDerick Montague <legend class="column small-12 page-header h2"> 88*1ffa209eSDerick Montague DNS settings 89*1ffa209eSDerick Montague </legend> 90*1ffa209eSDerick Montague <div class="net-config__fieldset-content"> 910646782dSGunnar Mills <!-- Call Nameservers "DNS Servers" on the GUI --> 92*1ffa209eSDerick Montague <div class="net-config__static-ip-wrap" ng-repeat="dns in interface.Nameservers track by $index"> 93cff61508Sbeccabroek <div class="column small-12"> 94bc3ab72cSGunnar Mills <label for="net-config__prime-dns{{$index+1}}">DNS Server {{$index+1}}</label> 95*1ffa209eSDerick Montague <input id="net-config__prime-dns{{$index+1}}" class="network-input column small-6 large-4 inline" 96*1ffa209eSDerick Montague type="text" ng-model="dns" ng-blur="interface.Nameservers[$index] = dns" set-focus-on-new-input /> 97971ac1aaSbeccabroek <button class="network-config_remove-button inline" ng-click="removeDNSField($index)">Remove</button> 98cff61508Sbeccabroek </div> 99*1ffa209eSDerick Montague </div> 100971ac1aaSbeccabroek <div class="row column"> 1011a0e7d06Sbeccabroek <div class="column small-12"> 1021a0e7d06Sbeccabroek <button type="button" class="btn-primary inline dns_add" ng-click="addDNSField()">Add DNS server</button> 1031a0e7d06Sbeccabroek </div> 10451946552SMichael Davis </div> 105*1ffa209eSDerick Montague </div> 10651946552SMichael Davis </fieldset> 10751946552SMichael Davis <div class="network-config__submit-wrapper"> 108067a1cd1Sbeccabroek <button type="button" class="btn-primary inline" ng-click="confirmSettings=true;">Save settings</button> 1099a0094dcSGunnar Mills <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button> 110a960c8c7SMichael Davis </div> 111a960c8c7SMichael Davis </form> 112cd789508SIftekharul Islam</div> 113d0dbe3b3Sbeccabroek<div class="modal-overlay" tabindex="-1" ng-class="{'active': confirmSettings}"></div> 114*1ffa209eSDerick Montague<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" 115*1ffa209eSDerick Montague ng-class="{'active': confirmSettings}"> 116d01504cfSGunnar Mills <div class="modal__tftp-unreachable" role="document"> 117*1ffa209eSDerick Montague <div class="screen-reader-offscreen modal-description">Change network settings</div> 118*1ffa209eSDerick Montague <!-- accessibility only; used for screen readers --> 119d01504cfSGunnar Mills <div class="page-header"> 120d01504cfSGunnar Mills <span class="icon icon__warning inline"><span class="accessible-text" role="alert">Warning</span></span> 121edf1ab46Sbeccabroek <h3 class="modal-title inline">Change network settings</h3> 122d01504cfSGunnar Mills </div> 123d01504cfSGunnar Mills <div class="modal__content"> 124d01504cfSGunnar Mills <p>Changing network settings may cause the system to become unavailable (e.g. changing the BMC IP address). 125d01504cfSGunnar Mills Proceed with caution and make note of any new settings that may affect connectivity.</p> 126d01504cfSGunnar Mills </div> 127d01504cfSGunnar Mills <div class="modal__button-wrapper"> 128067a1cd1Sbeccabroek <button class="inline btn-secondary" ng-click="confirmSettings=false;">Cancel</button> 129d01504cfSGunnar Mills <button class="inline btn-primary" ng-click="setNetworkSettings()">Continue</button> 130d01504cfSGunnar Mills </div> 131d01504cfSGunnar Mills </div> 132d01504cfSGunnar Mills</section>