1cd789508SIftekharul Islam<div id="configuration-network"> 2cd789508SIftekharul Islam <div class="row column"> 351946552SMichael Davis <h1>BMC network settings</h1> 4cd789508SIftekharul Islam </div> 5a960c8c7SMichael Davis <form class="net-config__form" role="form" action=""> 6a960c8c7SMichael Davis <section class="row column"> 7a960c8c7SMichael Davis <div class="column small-12 page-header"> 8a960c8c7SMichael Davis <h2 class="inline h4">Common settings</h2> 9a960c8c7SMichael Davis </div> 10a960c8c7SMichael Davis <fieldset> 1151946552SMichael Davis <div class="column small-12 large-3"> 122a489554SIftekharul Islam <label for="net-config__mac">Hostname</label> 13309e06abSGunnar Mills <input id="net-config__mac" type="text" ng-model="hostname"/> 142a489554SIftekharul Islam </div> 152a489554SIftekharul Islam <div class="column small-12 large-3"> 1651946552SMichael Davis <label for="netinterface-select">Network interface</label> 17a960c8c7SMichael Davis <div id="netinterface-select" class="dropdown__wrapper"> 182a489554SIftekharul Islam <button type="button" class="dropdown__button" ng-click="networkDevice = !networkDevice">{{selectedInterface}}</button> 19a960c8c7SMichael Davis <ul class="dropdown__list inline" ng-show="networkDevice"> 202a489554SIftekharul Islam <li ng-repeat="interface_id in network.interface_ids"> 212a489554SIftekharul Islam <button type="button" ng-click="selectInterface(interface_id);">{{interface_id}}</button> 22a960c8c7SMichael Davis </li> 23a960c8c7SMichael Davis </ul> 24a960c8c7SMichael Davis </div> 25a960c8c7SMichael Davis </div> 2651946552SMichael Davis <div class="column small-12 large-3"> 272a489554SIftekharul Islam <label for="net-config__host">MAC address</label> 282a489554SIftekharul Islam <input id="net-config__host" type="text" ng-model="interface.MACAddress"/> 29a960c8c7SMichael Davis </div> 3051946552SMichael Davis <div class="column small-12 large-3"> 31e9f5fe77SGunnar Mills <label for="net-config__domain">Default Gateway</label> 32e9f5fe77SGunnar Mills <input id="net-config__domain" type="text" ng-model="defaultgateway"/> 33a960c8c7SMichael Davis </div> 34a960c8c7SMichael Davis </fieldset> 35a960c8c7SMichael Davis </section> 36a960c8c7SMichael Davis <section class="row column"> 3751946552SMichael Davis <div class="column small-12 page-header"> 38a960c8c7SMichael Davis <h2 class="inline h4">IPV4 settings</h2> 39a960c8c7SMichael Davis </div> 40a960c8c7SMichael Davis <fieldset> 41a960c8c7SMichael Davis <div class="row column"> 42a960c8c7SMichael Davis <label class="control-radio" for="dhcp-address">Obtain an IP address automatically using DHCP 43*cb2c3060SGunnar Mills <!-- TODO: openbmc/openbmc#3154 Rest server should return a proper JSON bool instead of "0" or "1"--> 44*cb2c3060SGunnar Mills <input type="radio" name="ip-address" id="dhcp-address" ng-checked="true" ng-model="interface.DHCPEnabled" ng-value="1"> 45a960c8c7SMichael Davis <span class="control__indicator control__indicator-on"></span> 46a960c8c7SMichael Davis </label> 47a960c8c7SMichael Davis </div> 48a960c8c7SMichael Davis <div class="row column"> 49a960c8c7SMichael Davis <label class="control-radio" for="static-ip-address">Assign a static IP address 50*cb2c3060SGunnar Mills <input type="radio" name="ip-address" id="static-ip-address" ng-model="interface.DHCPEnabled" ng-value="0"/> 51a960c8c7SMichael Davis <span class="control__indicator control__indicator-on"></span> 52a960c8c7SMichael Davis </label> 53a960c8c7SMichael Davis </div> 542a489554SIftekharul Islam <fieldset class="net-config__static-ip-wrap" ng-repeat="ipv4 in interface.ipv4.values"> 5551946552SMichael Davis <div class="column small-12 large-4"> 56a960c8c7SMichael Davis <label for="net-config__ipv4-address" class="inline">IPV4 address</label> 572a489554SIftekharul Islam <input id="net-config__ipv4-address" type="text" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Address"/> 58a960c8c7SMichael Davis </div> 5951946552SMichael Davis <div class="column small-12 large-4"> 602a489554SIftekharul Islam <label for="net-config__subnet" class="inline">Gateway</label> 612a489554SIftekharul Islam <input id="net-config__subnet" type="text" ng-disabled="interface.DHCPEnabled" value="" ng-model="ipv4.Gateway"/> 62a960c8c7SMichael Davis </div> 6351946552SMichael Davis <div class="column small-12 large-4"> 6447db9cb3SGunnar Mills <label for="net-config__default-gateway" class="inline">Netmask Prefix Length</label> 6547db9cb3SGunnar Mills <input id="net-config__default-gateway" type="text" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.PrefixLength"/> 66a960c8c7SMichael Davis </div> 67a960c8c7SMichael Davis </fieldset> 68a960c8c7SMichael Davis </fieldset> 6951946552SMichael Davis </section> 7051946552SMichael Davis <section class="row column"> 7151946552SMichael Davis <div class="column small-12 page-header"> 7251946552SMichael Davis <h2 class="inline h4">DNS settings</h2> 7351946552SMichael Davis </div> 7451946552SMichael Davis <fieldset> 7551946552SMichael Davis <div class="column small-12 large-4"> 762a489554SIftekharul Islam <ul> 772a489554SIftekharul Islam <li ng-repeat="dns in interface.Nameservers track by $index"> 782a489554SIftekharul Islam <label for="net-config__prime-dns">DNS Server {{$index+1}}</label>{{dns}} 792a489554SIftekharul Islam <br/> 802a489554SIftekharul Islam </li> 812a489554SIftekharul Islam </ul> 8251946552SMichael Davis </div> 8351946552SMichael Davis </fieldset> 8451946552SMichael Davis <div class="network-config__submit-wrapper"> 85d01504cfSGunnar Mills <button type="button" class="btn-primary inline" ng-click="confirm_settings=true;">Save settings</button> 869a0094dcSGunnar Mills <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button> 87a960c8c7SMichael Davis </div> 887ddc7274SGunnar Mills <p class="success-msg set_network_success" ng-show="set_network_success" role="alert">Success! Network settings changed!</p> 897ddc7274SGunnar Mills <p class="set_network_error error-msg" ng-show="set_network_error" role="alert">Error setting {{set_network_error}}!</p> 90a960c8c7SMichael Davis </section> 91a960c8c7SMichael Davis </form> 92cd789508SIftekharul Islam</div> 93d01504cfSGunnar Mills<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirm_settings}"> 94d01504cfSGunnar Mills <div class="modal__tftp-unreachable" role="document"> 95d01504cfSGunnar Mills <div class="screen-reader-offscreen modal-description">Change network settings</div><!-- accessibility only; used for screen readers --> 96d01504cfSGunnar Mills <div class="page-header "> 97d01504cfSGunnar Mills <span class="icon icon__warning inline"><span class="accessible-text" role="alert">Warning</span></span> 98d01504cfSGunnar Mills <h1 class="modal-title h4 inline">Change network settings</h1> 99d01504cfSGunnar Mills </div> 100d01504cfSGunnar Mills <div class="modal__content"> 101d01504cfSGunnar Mills <p>Changing network settings may cause the system to become unavailable (e.g. changing the BMC IP address). 102d01504cfSGunnar Mills Proceed with caution and make note of any new settings that may affect connectivity.</p> 103d01504cfSGunnar Mills </div> 104d01504cfSGunnar Mills <div class="modal__button-wrapper"> 105d01504cfSGunnar Mills <button class="inline btn-secondary" ng-click="confirm_settings=false;">Cancel</button> 106d01504cfSGunnar Mills <button class="inline btn-primary" ng-click="setNetworkSettings()">Continue</button> 107d01504cfSGunnar Mills </div> 108d01504cfSGunnar Mills </div> 109d01504cfSGunnar Mills</section> 110