blob: 733f022ef8215f5448161bcc7d952b11857aa75a [file] [log] [blame]
Andrea Campanella420e4b42017-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 Chu2de11f82017-09-06 08:49:21 -070010xz
Andrea Campanella420e4b42017-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 Chu2de11f82017-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 Campanella420e4b42017-09-01 16:51:03 +020024 <h1>ELine Overview</h1>
Max Chu2de11f82017-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 Campanella420e4b42017-09-01 16:51:03 +020027 <label>ID</label><br/>
Max Chu2de11f82017-09-06 08:49:21 -070028 <p>{{vm.vng.eline.id}}</p>
Andrea Campanella420e4b42017-09-01 16:51:03 +020029 </div>
30 <div class="form-group">
31 <label for="name">Name</label>
Max Chu2de11f82017-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 Campanella420e4b42017-09-01 16:51:03 +020033 </div>
Max Chu2de11f82017-09-06 08:49:21 -070034 <div class="form-group" ng-hide="vm.vng.createMode">
Andrea Campanella420e4b42017-09-01 16:51:03 +020035 <label>Backend Status</label><br/>
Max Chu2de11f82017-09-06 08:49:21 -070036 <p>{{vm.vng.eline.backend_status}}</p>
Andrea Campanella420e4b42017-09-01 16:51:03 +020037 </div>
38 <div class="form-group">
39 <label for="cpi1">Connect point 1 ID</label>
Max Chu2de11f82017-09-06 08:49:21 -070040 <input required class="form-control" id="cpi1" type="text" ng-value="vm.vng.eline.connect_point_1_id" ng-model="vm.vng.eline.connect_point_1_id">
Andrea Campanella420e4b42017-09-01 16:51:03 +020041 </div>
42 <div class="form-group">
43 <label for="cpi2">Connect point 2 ID</label>
Max Chu2de11f82017-09-06 08:49:21 -070044 <input required class="form-control" id="cpi2" type="text" ng-value="vm.vng.eline.connect_point_2_id" ng-model="vm.vng.eline.connect_point_2_id">
Andrea Campanella420e4b42017-09-01 16:51:03 +020045 </div>
46 <div class="form-group">
47 <label for="bwps">Bandwidth Profile</label>
48 <select required class="form-control"
49 id="bwps"
Max Chu2de11f82017-09-06 08:49:21 -070050 ng-model="vm.vng.eline.bwp"
51 ng-options="bwp.name as bwp.name for bwp in vm.vng.bwps | orderBy:'name'"
Andrea Campanella420e4b42017-09-01 16:51:03 +020052 >
53 </select>
54 </div>
55 <div class="form-group">
56 <label for="sitename">CORD Site Name</label>
Max Chu2de11f82017-09-06 08:49:21 -070057 <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 Campanella420e4b42017-09-01 16:51:03 +020058 </div>
59 <div class="form-group">
60 <label for="vlanids">Vlan IDs</label>
Max Chu2de11f82017-09-06 08:49:21 -070061 <input required class="form-control" id="vlanids" type="text" ng-value="vm.vng.eline.vlanids" ng-model="vm.vng.eline.vlanids">
Andrea Campanella420e4b42017-09-01 16:51:03 +020062 </div>
63 <div class="form-group" style="text-align: center">
64 <button type="submit" class="btn btn-success btn-block">Save Changes</button>
65 </div>
66 </form>
Max Chu2de11f82017-09-06 08:49:21 -070067 <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 Campanella420e4b42017-09-01 16:51:03 +020068</div>