Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 1 | <!-- partial HTML --> |
| 2 | <div id="ov-int-app-main"> |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 3 | <div class="tabular-header"> |
| 4 | <h2 style="font-weight: bold">In-band Network Telemetry (INT) Control |
| 5 | Application</h2> |
| 6 | </div> |
Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 7 | |
Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 8 | <hr> |
Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 9 | |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 10 | <div class="tabular-header"> |
| 11 | <h2> |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 12 | 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 Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 79 | <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 Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 90 | </div> |
| 91 | </div> |
| 92 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 93 | <div class='int-app-main-intents'> |
| 94 | <div class="tabular-header"> |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 95 | <h2>Installed Watchlist Rules ({{tableData.length}} total)</h2> |
Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 96 | <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 Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 116 | <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 Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 123 | </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 | <!-- +++++++++++++++++++++ --> |