blob: e0c19f00e200508d23ecec2682a637d71c374ff7 [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
10
11Unless 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
18<div class = "elinepanel">
19 <h1>ELine Overview</h1>
20 <form ng-submit="vm.saveEline(vm.eng.eline)">
21 <div class="form-group" ng-hide="vm.eng.createMode">
22 <label>ID</label><br/>
23 <p>{{vm.eng.eline.id}}</p>
24 </div>
25 <div class="form-group">
26 <label for="name">Name</label>
27 <input required class="form-control" id="name" type="text" ng-value="vm.eng.eline.name" ng-model="vm.eng.eline.name">
28 </div>
29 <div class="form-group" ng-hide="vm.eng.createMode">
30 <label>Backend Status</label><br/>
31 <p>{{vm.eng.eline.backend_status}}</p>
32 </div>
33 <div class="form-group">
34 <label for="cpi1">Connect point 1 ID</label>
35 <input required class="form-control" id="cpi1" type="text" ng-value="vm.eng.eline.connect_point_1_id" ng-model="vm.eng.eline.connect_point_1_id">
36 </div>
37 <div class="form-group">
38 <label for="cpi2">Connect point 2 ID</label>
39 <input required class="form-control" id="cpi2" type="text" ng-value="vm.eng.eline.connect_point_2_id" ng-model="vm.eng.eline.connect_point_2_id">
40 </div>
41 <div class="form-group">
42 <label for="bwps">Bandwidth Profile</label>
43 <select required class="form-control"
44 id="bwps"
45 ng-model="vm.eng.eline.bwp"
46 ng-options="bwp.name as bwp.name for bwp in vm.eng.bwps | orderBy:'name'"
47 >
48 </select>
49 </div>
50 <div class="form-group">
51 <label for="sitename">CORD Site Name</label>
52 <input required class="form-control" id="sitename" type="text" ng-value="vm.eng.eline.cord_site_name" ng-model="vm.eng.eline.cord_site_name">
53 </div>
54 <div class="form-group">
55 <label for="vlanids">Vlan IDs</label>
56 <input required class="form-control" id="vlanids" type="text" ng-value="vm.eng.eline.vlanids" ng-model="vm.eng.eline.vlanids">
57 </div>
58 <div class="form-group" style="text-align: center">
59 <button type="submit" class="btn btn-success btn-block">Save Changes</button>
60 </div>
61 </form>
62 <button type="button" class="btn btn-danger btn-block" ng-click="vm.eng.elinePanel({}, vm.eng.eline, false)">Close</button>
63 <button type="button" class="btn btn-danger delete-eline" ng-click="vm.deleteEline(vm.eng.eline)">Delete Eline</button>
64</div>