flow.html
4.7 KB
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
<!-- Flow partial HTML -->
<div id="ov-flow">
<div class="tabular-header">
<h2>
Flows for Device {{devId || "(No device selected)"}}
({{tableData.length}} total)
</h2>
<div class="search">
<input type="text" ng-model="query" placeholder="Search"/>
<select ng-model="queryBy">
<option value="" disabled>Search By</option>
<option value="$">All</option>
<option value="id">Flow ID</option>
<option value="appId">App ID</option>
<option value="groupId">Group ID</option>
<option value="tableId">Table ID</option>
<option value="priority">Priority</option>
<option value="timeout">Timeout</option>
<option value="permanent">Permanent</option>
<option value="state">State</option>
</select>
</div>
<div class="ctrl-btns">
<div class="refresh" ng-class="{active: autoRefresh}"
icon icon-size="42" icon-id="refresh"
tooltip tt-msg="autoRefreshTip"
ng-click="toggleRefresh()"></div>
<div class="separator"></div>
<span ng-if="brief">
<div class="active"
icon icon-id="plus" icon-size="42"
tooltip tt-msg="detailTip"
ng-click="briefToggle()"> </div>
</span>
<span ng-if="!brief">
<div class="active"
icon icon-id="minus" icon-size="42"
tooltip tt-msg="briefTip"
ng-click="briefToggle()"> </div>
</span>
<div class="separator"></div>
<div class="active"
icon icon-id="deviceTable" icon-size="42"
tooltip tt-msg="deviceTip"
ng-click="nav('device')"></div>
<div class="current-view"
icon icon-id="flowTable" icon-size="42"></div>
<div class="active"
icon icon-id="portTable" icon-size="42"
tooltip tt-msg="portTip"
ng-click="nav('port')"></div>
<div class="active"
icon icon-id="groupTable" icon-size="42"
tooltip tt-msg="groupTip"
ng-click="nav('group')"></div>
<div class="active"
icon icon-id="meterTable" icon-size="42"
tooltip tt-msg="meterTip"
ng-click="nav('meter')"></div>
</div>
</div>
<div class="summary-list" onos-table-resize>
<div class="table-header" onos-sortable-header>
<table>
<tr>
<td colId="id" col-width="180px" sortable>Flow ID </td>
<td colId="appId" sortable>App ID </td>
<td colId="groupId" sortable>Group ID </td>
<td colId="tableId" sortable>Table ID </td>
<td colId="priority" sortable>Priority </td>
<td colId="timeout" sortable>Timeout </td>
<td colId="permanent" sortable>Permanent </td>
<td colId="state" sortable>State </td>
<td class="right" colId="packets" sortable>Packets </td>
<td class="right" colId="bytes" sortable>Bytes </td>
</tr>
</table>
</div>
<div class="table-body">
<table onos-flash-changes id-prop="id">
<tr ng-if="!tableData.length" class="no-data">
<td colspan="10">
{{annots.no_rows_msg}}
</td>
</tr>
<tr ng-repeat-start="flow in tableData | filter:queryFilter track by $index"
ng-repeat-complete row-id="{{flow.id}}">
<td>{{flow.id}}</td>
<td>{{flow.appId}}</td>
<td>{{flow.groupId}}</td>
<td>{{flow.tableId}}</td>
<td>{{flow.priority}}</td>
<td>{{flow.timeout}}</td>
<td>{{flow.permanent}}</td>
<td>{{flow.state}}</td>
<td class="right">{{flow.packets}}</td>
<td class="right">{{flow.bytes}}</td>
</tr>
<tr row-id="{{flow.id}}" ng-hide="brief">
<td class="selector" colspan="10" >{{flow.selector}} </td>
</tr>
<tr row-id="{{flow.id}}" ng-repeat-end ng-hide="brief">
<td class="treatment" colspan="10">{{flow.treatment}}</td>
</tr>
</table>
</div>
</div>
</div>