/usr/share/maas/web/static/partials/networks-list.html is in maas-region-api 2.4.0~beta2-6865-gec43e47e6-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | <header class="p-strip--light is-shallow is-bordered page-header" media-query="min-width: 769px">
<div class="row">
<div class="col-8">
<h1 class="page-header__title">Subnets</h1>
<!-- XXX ricgard 2016-06-16 - Need to add e2e test. -->
<p class="page-header__status u-no-margin--top" data-ng-show="loading"><span class="u-text--loading"><i class="p-icon--spinner u-animation--spin"></i> Loading...</span></p>
</div>
<div class="col-4">
<!-- Drop-down box -->
<div class="page-header__controls u-float--right" data-ng-show="actionOptions.length">
<div data-maas-cta="actionOptions"
data-default-title="Add"
data-ng-model="actionOption"
data-ng-change="actionChanged()">
</div>
</div>
</div>
</div>
<div class="page-header__dropdown u-no-margin--top" data-ng-class="{ 'is-open': actionOption.name}">
<section class="row u-no-margin--bottom ng-hide" data-ng-show="actionOption.name === 'add_fabric'">
<div class="p-strip u-no-padding--bottom">
<maas-obj-form obj="newObject" manager="fabricManager" manager-method="createItem"
inline="true" save-on-blur="false" after-save="cancelAction">
<maas-obj-field
type="text" key="name" label="Add fabric" subtle="false"
placeholder="Name (optional)"></maas-obj-field>
<maas-obj-errors></maas-obj-errors>
<div class="page-header__controls u-no-margin--top col-4 u-align--right">
<button class="p-button p-button--inline" data-ng-click="cancelAction()">Cancel</button>
<button class="p-button--positive p-button--inline" maas-obj-save>Add fabric</button>
</div>
</maas-obj-form>
</div>
</section>
<section class="row u-no-margin--bottom ng-hide" data-ng-show="actionOption.name === 'add_vlan'">
<maas-obj-form obj="newObject" manager="vlanManager" manager-method="createItem"
save-on-blur="false" after-save="cancelAction">
<div class="p-form--inline">
<maas-obj-field
type="text" key="name" label="Add VLAN" subtle="false"
placeholder="Name (optional)"></maas-obj-field>
<maas-obj-field
type="text" key="vid" label="with VID" subtle="false"
placeholder="numeric value 1-4094"></maas-obj-field>
<maas-obj-field
type="options" key="fabric" label="to fabric" subtle="false"
options="f.id as f.name for f in fabrics" input-width="12"
placeholder="Select fabric"></maas-obj-field>
<maas-obj-field
subtle="false" type="options" key="space" label="in space"
placeholder="(undefined)" placeholder-enabled="true"
options="space.id as space.name for space in spaces"></maas-obj-field>
</div>
<div class="row u-align--right">
<maas-obj-errors></maas-obj-errors>
<div class="page-header__controls u-no-margin--top">
<button class="p-button p-button--inline" data-ng-click="cancelAction()">Cancel</button>
<button class="p-button--positive p-button--inline" maas-obj-save>Add VLAN</button>
</div>
</div>
</maas-obj-form>
</section>
<section class="row u-no-margin--bottom ng-hide" data-ng-show="actionOption.name === 'add_space'">
<maas-obj-form obj="newObject" manager="spaceManager" manager-method="createItem"
inline="true" save-on-blur="false" after-save="cancelAction">
<maas-obj-field
type="text" key="name" label="Add space" subtle="false"
placeholder="Name (optional)"></maas-obj-field>
<maas-obj-errors></maas-obj-errors>
<div class="page-header__controls u-no-margin--top u-align--right col-4">
<button class="p-button p-button--inline" data-ng-click="cancelAction()">Cancel</button>
<button class="p-button--positive p-button--inline" maas-obj-save>Add space</button>
</div>
</maas-obj-form>
</section>
<section class="row ng-hide" data-ng-show="actionOption.name == 'add_subnet'">
<maas-obj-form obj="newObject" manager="subnetManager" manager-method="createItem" class="p-form--stacked"
table-form="true" save-on-blur="false" pre-process="actionSubnetPreSave" after-save="cancelAction">
<section class="row">
<div class="col-6">
<maas-obj-field
subtle="false" type="text" key="name" label="Name" placeholder="Name (optional)"
label-width="two" input-width="three"></maas-obj-field>
<maas-obj-field
subtle="false" type="text" key="cidr" label="CIDR"
placeholder="Use IPv4 or IPv6 format"
label-width="two" input-width="three"></maas-obj-field>
<maas-obj-field
subtle="false" type="text" key="gateway_ip" label="Gateway IP"
placeholder="Use IPv4 or IPv6 format (optional)"
label-width="two" input-width="three"></maas-obj-field>
</div>
<div class="col-6">
<maas-obj-field
subtle="false" type="text" key="dns_servers" label="DNS servers"
placeholder="Use IPv4 or IPv6 format (optional)"
label-width="two" input-width="three"></maas-obj-field>
<maas-obj-field
subtle="false" type="options" key="vlan" label="Fabric & VLAN" placeholder="Choose Fabric & VLAN"
options="v.id as getVLANName(v) group by getFabricNameById(v.fabric) for v in vlans"
label-width="two" input-width="three"></maas-obj-field>
</div>
</section>
<section class="u-no-margin--top">
<maas-obj-errors class="page-header__message page-header__message--error"></maas-obj-errors>
<div class="page-header__controls u-no-margin--top">
<button class="p-button p-button--inline" data-ng-click="cancelAction()">Cancel</button>
<button class="p-button--positive p-button--inline" maas-obj-save>Add subnet</button>
</div>
</section>
</maas-obj-form>
</div>
</header>
<section class="p-strip is-shallow">
<div class="row u-equal-height">
<div class="col-5">
<form class="p-form p-form--stacked">
<div class="p-form__group">
<label class="p-form__label" for="network-filter">Group by</label>
<select name="network-filter" class="p-form__control" id="networks-groupby" data-ng-model="groupBy" data-ng-change="updateGroupBy()">
<option value="fabric">Fabrics</option>
<option value="space">Spaces</option>
</select>
</div>
</form>
</div>
<div class="col-1 u-vertically-center u-no-margin--left">
 
<div class="p-tooltip p-tooltip--right">
<i class="p-icon--help u-hide u-show--large">Help:</i>
<span class="p-tooltip__message" role="tooltip">Fabric is a set of consistent interconnected VLANs that are capable of mutual communication.
Space is a grouping of networks (VLANs and their subnets) that are able to mutually communicate with each other.
Subnets within a space do not need to belong to the same fabric.</span>
</div>
</div>
</div>
<div class="row u-no-margin--top">
<!-- XXX mpontillo temporarily hidden -->
<div class="col-8 ng-hide">
<div class="search">
<input placeholder="Search" class="search__input" type="search">
<input class="search__submit" type="submit">
</div>
</div>
</div>
<div class="row">
<div class="ng-hide" data-ng-show="!loading">
<!-- Spaces grouped table -->
<table class="ng-hide" data-ng-show="groupBy === 'space'">
<thead>
<tr>
<!-- <th class="ng-hide">
<input class="checkbox" type="checkbox" id="spaces-all" />
<label class="checkbox-label" for="spaces-all"></label>
</th> -->
<th>Space</th>
<th>VLAN</th>
<th>DHCP</th>
<th>Fabric</th>
<th>Subnet</th>
<th class="u-align--right">Available IPs</th>
</tr>
</thead>
<tbody vs-repeat vs-scroll-parent="window">
<tr data-ng-repeat="row in group.spaces.rows">
<!-- <td class="ng-hide">
<div data-ng-if="row.space_name">
<input class="checkbox" type="checkbox" id="space-{$ row.space.id $}" />
<label class="checkbox-label" for="space-{$ row.space.id $}"></label>
</div>
</td> -->
<td aria-label="Space">
<a href="#/space/{$ row.space.id $}">{$ row.space_name $}</a>
</td>
<td aria-label="VLAN">
<a href="#/vlan/{$ row.vlan.id $}">{$ row.vlan_name $}</a>
</td>
<td aria-label="DHCP">
<p data-ng-if="row.vlan.dhcp_on === true || row.vlan.relay_vlan !== null">Enabled</p>
<p data-ng-if="row.vlan.dhcp_on !== true && row.vlan.relay_vlan === null">Disabled</p>
</td>
<td aria-label="Fabric">
<a href="#/fabric/{$ row.fabric.id $}">{$ row.fabric.name $}</a>
</td>
<td aria-label="Subnet">
<a href="#/subnet/{$ row.subnet.id $}">{$ row.subnet_name $}</a>
</td>
<td class="u-align--right" aria-label="Available IPs">
{$ row.subnet.statistics.available_string $}
</td>
</tr>
<tr data-ng-repeat="row in group.spaces.orphanVLANs">
<td aria-label="Space">
<a data-ng-if="$index === 0" href="#/space/{$ row.space.id $}">(undefined)</a>
<span data-ng-if="$index === 0" class="p-icon--warning tooltip tooltip--right u-margin--left-small u-display--desktop"
aria-label="MAAS integrations require a space in order to determine the purpose of a network.
Define a space for each subnet by selecting the space on the VLAN details page.
If an approprate space does not exist, one may be created on this page."></span>
</td>
<td>
<a href="#/vlan/{$ row.vlan.id $}">{$ row.vlan_name $}</a>
</td>
<td aria-label="DHCP">
<p data-ng-if="row.vlan.dhcp_on === true || row.vlan.relay_vlan !== null || row.vlan.external_dhcp === true">Enabled</p>
<p data-ng-if="row.vlan.dhcp_on !== true && row.vlan.relay_vlan === null">Disabled</p>
</td>
<td>
<a href="#/fabric/{$ row.fabric.id $}">{$ row.fabric.name $}</a>
</td>
<td>
<a href="#/subnet/{$ row.subnet.id $}">{$ row.subnet_name $}</a>
</td>
<td class="u-align--right">
{$ row.subnet.statistics.available_string $}
</td>
</tr>
</tbody>
</table>
<!-- Fabric grouped table -->
<table class="u-no-margin--top ng-hide" data-ng-show="groupBy === 'fabric'">
<thead>
<tr>
<!-- <th class="ng-hide">
<input class="checkbox" type="checkbox" id="fabrics-all" />
<label class="checkbox-label" for="fabrics-all"></label>
</th> -->
<th>Fabric</th>
<th>VLAN</th>
<th>DHCP</th>
<th>Subnet</th>
<th>Available IPs</th>
<th>Space</th>
</tr>
</thead>
<tbody vs-repeat vs-scroll-parent="window">
<tr data-ng-repeat="row in group.fabrics.rows">
<!-- <td class="ng-hide">
<div data-ng-if="row.fabric_name">
<input class="checkbox" type="checkbox" id="fabric-{$ row.fabric.id $}" />
<label class="checkbox-label" for="fabric-{$ row.fabric.id $}"></label>
</div>
</td> -->
<td aria-label="Fabric">
<a href="#/fabric/{$ row.fabric.id $}">{$ row.fabric_name $}</a>
</td>
<td aria-label="VLAN">
<a href="#/vlan/{$ row.vlan.id $}">{$ row.vlan_name $}</a>
</td>
<td aria-label="DHCP">
<p data-ng-if="row.vlan.dhcp_on === true || row.vlan.relay_vlan !== null || row.vlan.external_dhcp === true">Enabled</p>
<p data-ng-if="row.vlan.dhcp_on !== true && row.vlan.relay_vlan === null">Disabled</p>
</td>
<td aria-label="Subnet">
<a href="#/subnet/{$ row.subnet.id $}">{$ row.subnet_name $}</a>
</td>
<td aria-label="Available IPs">
{$ row.subnet.statistics.available_string $}
</td>
<td aria-label="Space">
<a data-ng-if="row.space !== null" href="#/space/{$ row.space.id $}">{$ row.space.name $}</a>
<p data-ng-if="row.space === null">(undefined)</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
|