blob: d3032e5861bbe8ff1333255e09da78420b3d1b13 [file] [log] [blame]
Andrea Campanella95c02bd2017-09-01 16:51:03 +02001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
Max Chudd0b2e12017-09-06 08:49:21 -070010xz
Andrea Campanella95c02bd2017-09-01 16:51:03 +020011Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
Max Chudd0b2e12017-09-06 08:49:21 -070018<div class="elinepanel">
19 <div class="text-right">
20 <a href ng-click="vm.vng.elinePanel({}, vm.vng.eline, false)">
21 <i class="fa fa-remove" style="color:#fff;"></i>
22 </a>
23 </div>
Andrea Campanella95c02bd2017-09-01 16:51:03 +020024 <h1>ELine Overview</h1>
Max Chudd0b2e12017-09-06 08:49:21 -070025 <form ng-submit="vm.saveEline(vm.vng.eline)">
26 <div class="form-group" ng-hide="vm.vng.createMode">
Andrea Campanella95c02bd2017-09-01 16:51:03 +020027 <label>ID</label><br/>
Max Chudd0b2e12017-09-06 08:49:21 -070028 <p>{{vm.vng.eline.id}}</p>
Andrea Campanella95c02bd2017-09-01 16:51:03 +020029 </div>
30 <div class="form-group">
31 <label for="name">Name</label>
Max Chudd0b2e12017-09-06 08:49:21 -070032 <input required class="form-control" id="name" type="text" ng-value="vm.vng.eline.name" ng-model="vm.vng.eline.name">
Andrea Campanella95c02bd2017-09-01 16:51:03 +020033 </div>
Max Chudd0b2e12017-09-06 08:49:21 -070034 <div class="form-group" ng-hide="vm.vng.createMode">
Andrea Campanella95c02bd2017-09-01 16:51:03 +020035 <label>Backend Status</label><br/>
Max Chudd0b2e12017-09-06 08:49:21 -070036 <p>{{vm.vng.eline.backend_status}}</p>
Andrea Campanella95c02bd2017-09-01 16:51:03 +020037 </div>
38 <div class="form-group">
39 <label for="cpi1">Connect point 1 ID</label>
Max Chu9938b762017-12-19 13:50:41 -080040 <select required class="form-control"
41 id="cpi1"
42 ng-model="vm.vng.eline.connect_point_1_id"
43 ng-options="uni.id as uni.cpe_id for uni in vm.vng.unis | orderBy:'cpe_id'"
44 >
45 </select>
Andrea Campanella95c02bd2017-09-01 16:51:03 +020046 </div>
47 <div class="form-group">
48 <label for="cpi2">Connect point 2 ID</label>
Max Chu9938b762017-12-19 13:50:41 -080049 <select required class="form-control"
50 id="cpi2"
51 ng-model="vm.vng.eline.connect_point_2_id"
52 ng-options="uni.id as uni.cpe_id for uni in vm.vng.unis | orderBy:'cpe_id'"
53 >
54 </select>
Andrea Campanella95c02bd2017-09-01 16:51:03 +020055 </div>
56 <div class="form-group">
57 <label for="bwps">Bandwidth Profile</label>
58 <select required class="form-control"
59 id="bwps"
Max Chu9938b762017-12-19 13:50:41 -080060 ng-model="vm.vng.eline.bwp_id"
61 ng-options="bwp.id as bwp.name for bwp in vm.vng.bwps | orderBy:'name'"
Andrea Campanella95c02bd2017-09-01 16:51:03 +020062 >
63 </select>
64 </div>
65 <div class="form-group">
66 <label for="sitename">CORD Site Name</label>
Max Chudd0b2e12017-09-06 08:49:21 -070067 <input required class="form-control" id="sitename" type="text" ng-value="vm.vng.eline.cord_site_name" ng-model="vm.vng.eline.cord_site_name">
Andrea Campanella95c02bd2017-09-01 16:51:03 +020068 </div>
69 <div class="form-group">
70 <label for="vlanids">Vlan IDs</label>
Max Chudd0b2e12017-09-06 08:49:21 -070071 <input required class="form-control" id="vlanids" type="text" ng-value="vm.vng.eline.vlanids" ng-model="vm.vng.eline.vlanids">
Andrea Campanella95c02bd2017-09-01 16:51:03 +020072 </div>
73 <div class="form-group" style="text-align: center">
74 <button type="submit" class="btn btn-success btn-block">Save Changes</button>
75 </div>
76 </form>
Max Chudd0b2e12017-09-06 08:49:21 -070077 <button type="button" class="btn btn-danger btn-block" ng-click="vm.deleteEline(vm.vng.eline)" ng-hide="vm.vng.createMode">Delete Eline</button>
Andrea Campanella95c02bd2017-09-01 16:51:03 +020078</div>