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> |
Yi Tseng | 930b0cd | 2020-10-04 22:33:22 -0700 | [diff] [blame^] | 22 | <input placeholder="Source IP prefix" type="text" |
| 23 | pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?$" |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 24 | ng-model="ip4SrcPrefix"> |
| 25 | </label> |
| 26 | <label> |
Yi Tseng | 930b0cd | 2020-10-04 22:33:22 -0700 | [diff] [blame^] | 27 | <input placeholder="Dest IP prefix" type="text" |
| 28 | pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?$" |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 29 | ng-model="ip4DstPrefix"> |
| 30 | </label> |
| 31 | <label> |
Yi Tseng | 930b0cd | 2020-10-04 22:33:22 -0700 | [diff] [blame^] | 32 | <input placeholder="Source port" type="text" |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 33 | pattern="^[0-9]{0,5}$" |
| 34 | ng-model="l4SrcPort"> |
| 35 | </label> |
| 36 | <label> |
Yi Tseng | 930b0cd | 2020-10-04 22:33:22 -0700 | [diff] [blame^] | 37 | <input placeholder="Destination port" type="text" |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 38 | pattern="^[0-9]{0,5}$" |
| 39 | ng-model="l4DstPort"> |
| 40 | </label> |
| 41 | <label> |
| 42 | Protocol |
| 43 | <select name="protocol" ng-model="protocol"> |
Yi Tseng | 930b0cd | 2020-10-04 22:33:22 -0700 | [diff] [blame^] | 44 | <option value=""></option> |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 45 | <option value="TCP">TCP</option> |
| 46 | <option value="UDP">UDP</option> |
| 47 | </select> |
| 48 | </label> |
| 49 | </div> |
| 50 | <div> |
| 51 | <label> |
| 52 | <input type="checkbox" ng-model="metaSwId"> |
| 53 | Switch ID |
| 54 | </label> |
| 55 | <label> |
| 56 | <input type="checkbox" ng-model="metaPortId"> |
| 57 | Port IDs |
| 58 | </label> |
| 59 | <label> |
| 60 | <input type="checkbox" ng-model="metaHopLatency"> |
| 61 | Hop Latency |
| 62 | </label> |
| 63 | <label> |
| 64 | <input type="checkbox" ng-model="metaQOccupancy"> |
| 65 | Queue Occupancy |
| 66 | </label> |
| 67 | <label> |
| 68 | <input type="checkbox" ng-model="metaIngressTstamp"> |
| 69 | Ingress Timestamp |
| 70 | </label> |
| 71 | <label> |
| 72 | <input type="checkbox" ng-model="metaEgressTstamp"> |
| 73 | Egress Timestamp |
| 74 | </label> |
| 75 | <label> |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 76 | <input type="checkbox" ng-model="metaEgressTx"> |
| 77 | Egress Port Tx Utilization |
| 78 | </label> |
| 79 | </div> |
| 80 | </div> |
| 81 | </div> |
| 82 | |
| 83 | <div class="button-panel"> |
| 84 | <div class="int-app-button" ng-click="sendIntIntentString()"> |
| 85 | Apply Watchlist Rule |
| 86 | </div> |
Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 87 | </div> |
Yi Tseng | 930b0cd | 2020-10-04 22:33:22 -0700 | [diff] [blame^] | 88 | <div> |
| 89 | <p class="int-intent-add-msg"> |
| 90 | {{intAddMsg}} |
| 91 | </p> |
| 92 | </div> |
Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 93 | </div> |
| 94 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 95 | <div class='int-app-main-intents'> |
| 96 | <div class="tabular-header"> |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 97 | <h2>Installed Watchlist Rules ({{tableData.length}} total)</h2> |
Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 98 | <div class="ctrl-btns"> |
| 99 | <div class="refresh" ng-class="{active: autoRefresh}" |
| 100 | icon icon-id="refresh" icon-size="36" |
| 101 | tooltip tt-msg="autoRefreshTip" |
| 102 | ng-click="toggleRefresh()"> |
| 103 | </div> |
| 104 | |
| 105 | <!-- tooltip tt-msg="uninstallTip" --> |
| 106 | <div icon icon-size="42" icon-id="garbage" |
| 107 | ng-click="delIntIntent()" |
| 108 | ng-class="{active: ctrlBtnState.selection}"> |
| 109 | </div> |
| 110 | </div> |
| 111 | </div> |
| 112 | |
| 113 | <div class="summary-list" onos-table-resize> |
| 114 | |
| 115 | <div class="table-header" onos-sortable-header> |
| 116 | <table> |
| 117 | <tr> |
Carmelo Cascone | fa42158 | 2018-09-13 10:05:57 -0700 | [diff] [blame] | 118 | <td colId="id" sortable>ID</td> |
| 119 | <td colId="srcAddr" sortable>Src Address</td> |
| 120 | <td colId="dstAddr" sortable>Dst Address</td> |
| 121 | <td colId="srcPort" sortable>Src Port</td> |
| 122 | <td colId="dstPort" sortable>Dst Port</td> |
| 123 | <td colId="protocol" sortable>Protocol</td> |
| 124 | <td colId="metadata" sortable>Metadata</td> |
Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 125 | </tr> |
| 126 | </table> |
| 127 | </div> |
| 128 | |
| 129 | <div class="table-body"> |
| 130 | <table> |
| 131 | <tr ng-repeat="item in tableData track by $index" |
| 132 | ng-click="selectCallback($event, item)" |
| 133 | ng-class="{selected: item.id === selId}"> |
| 134 | <td>{{item.id}}</td> |
| 135 | <td>{{item.srcAddr}}</td> |
| 136 | <td>{{item.dstAddr}}</td> |
| 137 | <td>{{item.srcPort}}</td> |
| 138 | <td>{{item.dstPort}}</td> |
| 139 | <td>{{item.protocol}}</td> |
| 140 | <td>{{item.metadata}}</td> |
| 141 | </tr> |
| 142 | </table> |
| 143 | </div> |
| 144 | |
| 145 | </div> |
| 146 | </div> |
| 147 | </div> |
| 148 | <!-- +++++++++++++++++++++ --> |