blob: 44698dd9d263945f169230399eac42d6b302984e [file] [log] [blame]
Jonghwan Hyun13a430d2018-07-22 17:02:51 +09001<!-- partial HTML -->
2<div id="ov-int-app-main">
Carmelo Casconefa421582018-09-13 10:05:57 -07003 <div class="tabular-header">
4 <h2 style="font-weight: bold">In-band Network Telemetry (INT) Control
5 Application</h2>
6 </div>
Jonghwan Hyun13a430d2018-07-22 17:02:51 +09007
Jonghwan Hyun13a430d2018-07-22 17:02:51 +09008 <hr>
Jonghwan Hyun13a430d2018-07-22 17:02:51 +09009
Carmelo Casconefa421582018-09-13 10:05:57 -070010 <div class="tabular-header">
11 <h2>
Carmelo Casconefa421582018-09-13 10:05:57 -070012 INT Watchlist Rules
13 </h2>
14
15 <div>
16 <div class="input-panel">
17 <h3>
18 Create New Watchlist Rule
19 </h3>
20 <div>
21 <label>
22 <input placeholder="Source IP address" type="text"
23 required
24 pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}(/[0-9]{1,2})?$"
25 ng-model="ip4SrcPrefix">
26 </label>
27 <label>
28 <input placeholder="Dest IP address" type="text"
29 required
30 pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}(/[0-9]{1,2})?$"
31 ng-model="ip4DstPrefix">
32 </label>
33 <label>
34 <input placeholder="Source port" type="text" required
35 pattern="^[0-9]{0,5}$"
36 ng-model="l4SrcPort">
37 </label>
38 <label>
39 <input placeholder="Dest port" type="text" required
40 pattern="^[0-9]{0,5}$"
41 ng-model="l4DstPort">
42 </label>
43 <label>
44 Protocol
45 <select name="protocol" ng-model="protocol">
46 <option selected disabled hidden
47 style="display: none" value=''></option>
48 <option value="TCP">TCP</option>
49 <option value="UDP">UDP</option>
50 </select>
51 </label>
52 </div>
53 <div>
54 <label>
55 <input type="checkbox" ng-model="metaSwId">
56 Switch ID
57 </label>
58 <label>
59 <input type="checkbox" ng-model="metaPortId">
60 Port IDs
61 </label>
62 <label>
63 <input type="checkbox" ng-model="metaHopLatency">
64 Hop Latency
65 </label>
66 <label>
67 <input type="checkbox" ng-model="metaQOccupancy">
68 Queue Occupancy
69 </label>
70 <label>
71 <input type="checkbox" ng-model="metaIngressTstamp">
72 Ingress Timestamp
73 </label>
74 <label>
75 <input type="checkbox" ng-model="metaEgressTstamp">
76 Egress Timestamp
77 </label>
78 <label>
Carmelo Casconefa421582018-09-13 10:05:57 -070079 <input type="checkbox" ng-model="metaEgressTx">
80 Egress Port Tx Utilization
81 </label>
82 </div>
83 </div>
84 </div>
85
86 <div class="button-panel">
87 <div class="int-app-button" ng-click="sendIntIntentString()">
88 Apply Watchlist Rule
89 </div>
Jonghwan Hyun13a430d2018-07-22 17:02:51 +090090 </div>
91 </div>
92 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
93 <div class='int-app-main-intents'>
94 <div class="tabular-header">
Carmelo Casconefa421582018-09-13 10:05:57 -070095 <h2>Installed Watchlist Rules ({{tableData.length}} total)</h2>
Jonghwan Hyun13a430d2018-07-22 17:02:51 +090096 <div class="ctrl-btns">
97 <div class="refresh" ng-class="{active: autoRefresh}"
98 icon icon-id="refresh" icon-size="36"
99 tooltip tt-msg="autoRefreshTip"
100 ng-click="toggleRefresh()">
101 </div>
102
103 <!-- tooltip tt-msg="uninstallTip" -->
104 <div icon icon-size="42" icon-id="garbage"
105 ng-click="delIntIntent()"
106 ng-class="{active: ctrlBtnState.selection}">
107 </div>
108 </div>
109 </div>
110
111 <div class="summary-list" onos-table-resize>
112
113 <div class="table-header" onos-sortable-header>
114 <table>
115 <tr>
Carmelo Casconefa421582018-09-13 10:05:57 -0700116 <td colId="id" sortable>ID</td>
117 <td colId="srcAddr" sortable>Src Address</td>
118 <td colId="dstAddr" sortable>Dst Address</td>
119 <td colId="srcPort" sortable>Src Port</td>
120 <td colId="dstPort" sortable>Dst Port</td>
121 <td colId="protocol" sortable>Protocol</td>
122 <td colId="metadata" sortable>Metadata</td>
Jonghwan Hyun13a430d2018-07-22 17:02:51 +0900123 </tr>
124 </table>
125 </div>
126
127 <div class="table-body">
128 <table>
129 <tr ng-repeat="item in tableData track by $index"
130 ng-click="selectCallback($event, item)"
131 ng-class="{selected: item.id === selId}">
132 <td>{{item.id}}</td>
133 <td>{{item.srcAddr}}</td>
134 <td>{{item.dstAddr}}</td>
135 <td>{{item.srcPort}}</td>
136 <td>{{item.dstPort}}</td>
137 <td>{{item.protocol}}</td>
138 <td>{{item.metadata}}</td>
139 </tr>
140 </table>
141 </div>
142
143 </div>
144 </div>
145</div>
146<!-- +++++++++++++++++++++ -->