blob: 5829acf02c6c6884878edf9d4ec1bcd03c660012 [file] [log] [blame]
<!--
~ Copyright 2018-present Open Networking Foundation
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<div id="ov-tunnel">
<div class="tabular-header">
<h2>Tunnels ({{tableData.length}} total)</h2>
<div class="ctrl-btns">
<div class="refresh" (click)="toggleRefresh()">
<onos-icon classes="{{ autoRefresh?'active refresh':'refresh'}}" iconId="refresh" iconSize="42" toolTip="{{ autoRefreshTip }}"></onos-icon>
</div>
</div>
</div>
<div class="summary-list" onosTableResize>
<div class="table-header">
<table>
<tr>
<td colId="id" (click)="onSort('id')">Id
<onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('id')"></onos-icon>
</td>
<td colId="name" (click)="onSort('name')">Name
<onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('name')"></onos-icon>
</td>
<td colId="port1" (click)="onSort('port1')">Port 1
<onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('port1')"></onos-icon>
</td>
<td colId="port2" (click)="onSort('port2')">Port 2
<onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('port2')"></onos-icon>
</td>
<td colId="type" (click)="onSort('type')">Type
<onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('type')"></onos-icon>
</td>
<td colId="groupId" (click)="onSort('groupId')">Group Id
<onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('groupId')"></onos-icon>
</td>
<td colId="bandwidth" (click)="onSort('bandwidth')">Bandwidth
<onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('bandwidth')"></onos-icon>
</td>
<td colId="path" (click)="onSort('path')">Path
<onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('path')"></onos-icon>
</td>
</tr>
</table>
</div>
<div class="table-body">
<table>
<tr *ngIf="tableData.length === 0" class="no-data">
<td colspan="8">{{ annots.noRowsMsg }}</td>
</tr>
<tr *ngFor="let tunnel of tableData">
<td>{{tunnel.id}}</td>
<td>{{tunnel.name}}</td>
<td>{{tunnel.one}}</td>
<td>{{tunnel.two}}</td>
<td>{{tunnel.type}}</td>
<td>{{tunnel.group_id}}</td>
<td>{{tunnel.bandwidth}}</td>
<td>{{tunnel.path}}</td>
</tr>
</table>
</div>
</div>
</div>