blob: 6b4e9dd42a79a745271e736e3633c34a0913ec8a [file] [log] [blame]
Gunnar Mills84981f02018-05-31 15:19:01 -05001<loader loading="loading"></loader>
Iftekharul Islamcd789502017-04-19 14:37:55 -05002<div id="configuration-network">
Gunnar Mills5f0b7762018-09-25 14:10:45 -05003 <div class="row column">
4 <h1>BMC network settings</h1>
5 </div>
6 <form class="net-config__form" role="form" action="">
Derick Montague1ffa2092019-04-01 17:57:27 -05007 <fieldset class="net-config__fieldset row column">
8 <legend class="column small-12 page-header h2">
9 Common settings
10 </legend>
11 <div class="net-config__fieldset-content">
Gunnar Mills5f0b7762018-09-25 14:10:45 -050012 <div class="column small-12 large-3">
13 <label for="net-config__mac">Hostname</label>
Derick Montague1ffa2092019-04-01 17:57:27 -050014 <input id="net-config__mac" type="text" ng-model="hostname" />
Gunnar Mills5f0b7762018-09-25 14:10:45 -050015 </div>
16 <div class="column small-12 large-3">
17 <label for="netinterface-select">Network interface</label>
18 <div id="netinterface-select" class="dropdown__wrapper">
Derick Montague1ffa2092019-04-01 17:57:27 -050019 <button type="button" class="dropdown__button"
20 ng-click="networkDevice = !networkDevice">{{selectedInterface}}</button>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050021 <ul class="dropdown__list inline" ng-show="networkDevice">
22 <li ng-repeat="interface_id in network.interface_ids">
23 <button type="button" ng-click="selectInterface(interface_id);">{{interface_id}}</button>
24 </li>
25 </ul>
26 </div>
27 </div>
28 <div class="column small-12 large-3">
29 <label for="net-config__host">MAC address</label>
Derick Montague1ffa2092019-04-01 17:57:27 -050030 <input id="net-config__host" type="text" ng-model="interface.MACAddress" />
Gunnar Mills5f0b7762018-09-25 14:10:45 -050031 </div>
32 <div class="column small-12 large-3">
33 <label for="net-config__domain">Default Gateway</label>
Derick Montague1ffa2092019-04-01 17:57:27 -050034 <input id="net-config__domain" type="text" ng-model="defaultGateway" />
Gunnar Mills5f0b7762018-09-25 14:10:45 -050035 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050036 </div>
Derick Montague1ffa2092019-04-01 17:57:27 -050037 </fieldset>
38 <fieldset class="net-config__fieldset row column">
39 <legend class="column small-12 page-header h2">
40 IPV4 settings
41 </legend>
42 <div class="net-config__fieldset-content">
Gunnar Mills5f0b7762018-09-25 14:10:45 -050043 <div class="row column">
44 <label class="control-radio" for="dhcp-address">Obtain an IP address automatically using DHCP
Derick Montague1ffa2092019-04-01 17:57:27 -050045 <input type="radio" name="ip-address" id="dhcp-address" ng-checked="true" ng-model="interface.DHCPEnabled"
46 ng-value="true">
Gunnar Mills5f0b7762018-09-25 14:10:45 -050047 <span class="control__indicator control__indicator-on"></span>
48 </label>
49 </div>
50 <div class="row column">
51 <label class="control-radio" for="static-ip-address">Assign a static IP address
Derick Montague1ffa2092019-04-01 17:57:27 -050052 <input type="radio" name="ip-address" id="static-ip-address" ng-model="interface.DHCPEnabled"
53 ng-value="false" />
Gunnar Mills5f0b7762018-09-25 14:10:45 -050054 <span class="control__indicator control__indicator-on"></span>
55 </label>
56 </div>
beccabroek971ac1a2018-09-24 13:14:05 -050057 <div class="row column network-config__ipv4-wrap">
Derick Montague1ffa2092019-04-01 17:57:27 -050058 <fieldset class="net-config__fieldset net-config__static-ip-wrap" ng-repeat="ipv4 in interface.ipv4.values track by $index">
beccabroek971ac1a2018-09-24 13:14:05 -050059 <div class="column small-12 large-3">
Derick Montague1ffa2092019-04-01 17:57:27 -050060 <label for="ipv4-address-{{$index+1}}">IPV4 address</label>
61 <input id="ipv4-address-{{$index+1}}" ng-change="ipv4.updateAddress = true" type="text"
62 ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Address" />
beccabroek971ac1a2018-09-24 13:14:05 -050063 </div>
64 <div class="column small-12 large-3">
Derick Montague1ffa2092019-04-01 17:57:27 -050065 <label for="ipv4-gateway-{{$index+1}}">Gateway</label>
66 <input id="ipv4-gateway-{{$index+1}}" ng-change="ipv4.updateGateway = true" type="text"
67 ng-disabled="interface.DHCPEnabled" value="" ng-model="ipv4.Gateway" />
beccabroek971ac1a2018-09-24 13:14:05 -050068 </div>
69 <!-- This netmask prefix length max only works with IPV4 -->
70 <div class="column small-12 large-6">
Derick Montague1ffa2092019-04-01 17:57:27 -050071 <label for="ipv4-prefix-{{$index+1}}">Netmask Prefix Length</label>
72 <input id="ipv4-prefix-{{$index+1}}" class="column small-6" ng-change="ipv4.updatePrefix = true"
73 type="number" min="1" max="32" step="1" ng-disabled="interface.DHCPEnabled"
74 ng-model="ipv4.PrefixLength" />
Dixsie Wolmers07696092019-08-27 13:55:20 -050075 <button type="button" class="btn btn-tertiary network-config_remove-button" ng-click="removeIpv4Address($index)">Remove</button>
beccabroek971ac1a2018-09-24 13:14:05 -050076 </div>
77 </fieldset>
beccabroek1a0e7d02018-09-24 15:03:40 -050078 <div class="row column">
79 <div class="column small-12">
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -050080 <button type="button" class="btn btn-primary" ng-click="addIpv4Field()">Add IPV4 address</button>
beccabroek1a0e7d02018-09-24 15:03:40 -050081 </div>
82 </div>
beccabroek971ac1a2018-09-24 13:14:05 -050083 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050084 </div>
Derick Montague1ffa2092019-04-01 17:57:27 -050085 </fieldset>
86 <fieldset class="net-config__fieldset row column">
87 <legend class="column small-12 page-header h2">
88 DNS settings
89 </legend>
90 <div class="net-config__fieldset-content">
Gunnar Mills5f0b7762018-09-25 14:10:45 -050091 <!-- Call Nameservers "DNS Servers" on the GUI -->
Derick Montague1ffa2092019-04-01 17:57:27 -050092 <div class="net-config__static-ip-wrap" ng-repeat="dns in interface.Nameservers track by $index">
Gunnar Mills5f0b7762018-09-25 14:10:45 -050093 <div class="column small-12">
94 <label for="net-config__prime-dns{{$index+1}}">DNS Server {{$index+1}}</label>
Derick Montague1ffa2092019-04-01 17:57:27 -050095 <input id="net-config__prime-dns{{$index+1}}" class="network-input column small-6 large-4 inline"
96 type="text" ng-model="dns" ng-blur="interface.Nameservers[$index] = dns" set-focus-on-new-input />
Dixsie Wolmers07696092019-08-27 13:55:20 -050097 <button type="button" class="btn btn-tertiary network-config_remove-button" ng-click="removeDNSField($index)">Remove</button>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050098 </div>
Derick Montague1ffa2092019-04-01 17:57:27 -050099 </div>
beccabroek971ac1a2018-09-24 13:14:05 -0500100 <div class="row column">
beccabroek1a0e7d02018-09-24 15:03:40 -0500101 <div class="column small-12">
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500102 <button type="button" class="btn btn-primary dns_add" ng-click="addDNSField()">Add DNS server</button>
beccabroek1a0e7d02018-09-24 15:03:40 -0500103 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500104 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500105 </div>
Derick Montague1ffa2092019-04-01 17:57:27 -0500106 </fieldset>
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500107 <div class="row column">
108 <div class="network-config__submit-wrapper column">
109 <div class="float-right">
110 <button type="button" class="btn btn-secondary" ng-click="refresh()">Cancel</button>
111 <button type="button" class="btn btn-primary" ng-click="confirmSettings=true;">Save settings</button>
112 </div>
113 </div>
Derick Montague1ffa2092019-04-01 17:57:27 -0500114 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500115 </form>
Gunnar Mills7ddc7272018-04-12 16:12:03 -0500116</div>
beccabroekd0dbe3b2019-03-11 15:02:25 -0500117<div class="modal-overlay" tabindex="-1" ng-class="{'active': confirmSettings}"></div>
Derick Montague1ffa2092019-04-01 17:57:27 -0500118<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog"
119 ng-class="{'active': confirmSettings}">
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500120 <div class="modal__tftp-unreachable" role="document">
Derick Montague1ffa2092019-04-01 17:57:27 -0500121 <div class="screen-reader-offscreen modal-description">Change network settings</div>
122 <!-- accessibility only; used for screen readers -->
123 <div class="page-header">
Derick Montague86c0b942019-10-08 16:00:45 -0500124 <icon file="icon-warning.svg" aria-hidden="true"></icon><span class="accessible-text" role="alert">Warning</span>
beccabroekedf1ab42019-02-15 16:26:38 -0600125 <h3 class="modal-title inline">Change network settings</h3>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500126 </div>
127 <div class="modal__content">
128 <p>Changing network settings may cause the system to become unavailable (e.g. changing the BMC IP address).
129 Proceed with caution and make note of any new settings that may affect connectivity.</p>
130 </div>
131 <div class="modal__button-wrapper">
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500132 <button class="btn btn-secondary" ng-click="confirmSettings=false;">Cancel</button>
133 <button class="btn btn-primary" ng-click="setNetworkSettings()">Continue</button>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500134 </div>
135 </div>
Derick Montague1ffa2092019-04-01 17:57:27 -0500136</section>