Jonghwan Hyun | 13a430d | 2018-07-22 17:02:51 +0900 | [diff] [blame] | 1 | <!-- partial HTML --> |
| 2 | <div id="ov-int-app-main"> |
| 3 | <div class="config-panel"> |
| 4 | <div> |
| 5 | Collector IP |
| 6 | <input type="text" required pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}$" ng-model="collectorIp"> |
| 7 | |
| 8 | Collector Port |
| 9 | <input type="text" required pattern="^[0-9]{0,5}$" ng-model="collectorPort"> |
| 10 | </div> |
| 11 | </div> |
| 12 | <div class="config-button-panel"> |
| 13 | <div class = "int-app-config-button" ng-click="sendIntConfigString()"> |
| 14 | Deploy |
| 15 | </div> |
| 16 | </div> |
| 17 | <hr> |
| 18 | <div class="input-panel"> |
| 19 | <div> |
| 20 | Src Address |
| 21 | <input type="text" required pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}(/[0-9]{1,2})?$" ng-model="ip4SrcPrefix"> |
| 22 | |
| 23 | Dst Address |
| 24 | <input type="text" required pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}(/[0-9]{1,2})?$" ng-model="ip4DstPrefix"> |
| 25 | |
| 26 | Src Port |
| 27 | <input type="text" required pattern="^[0-9]{0,5}$" ng-model="l4SrcPort"> |
| 28 | |
| 29 | Dst Port |
| 30 | <input type="text" required pattern="^[0-9]{0,5}$" ng-model="l4DstPort"> |
| 31 | |
| 32 | Protocol |
| 33 | <select name="protocol" ng-model="protocol"> |
| 34 | <option selected disabled hidden style="display: none" value=''></option> |
| 35 | <option value="TCP">TCP</option> |
| 36 | <option value="UDP">UDP</option> |
| 37 | </select> |
| 38 | </div> |
| 39 | <div> |
| 40 | <input type="checkbox" ng-model= "metaSwId">Switch Id |
| 41 | <input type="checkbox" ng-model= "metaPortId">Port Id |
| 42 | <input type="checkbox" ng-model= "metaHopLatency">Hop Latency |
| 43 | <input type="checkbox" ng-model= "metaQOccupancy">Queue Occupancy |
| 44 | <input type="checkbox" ng-model= "metaIngressTstamp">Ingress Timestamp |
| 45 | <input type="checkbox" ng-model= "metaEgressTstamp">Egress Timestamp |
| 46 | <!--<input type="checkbox" ng-model= "metaQCongestion">Queue Congestion Status--> |
| 47 | <input type="checkbox" ng-model= "metaEgressTx">Egress Port Tx Utilization |
| 48 | </div> |
| 49 | </div> |
| 50 | |
| 51 | <div class="button-panel"> |
| 52 | <div class = "int-app-button" ng-click="sendIntIntentString()"> |
| 53 | Deploy |
| 54 | </div> |
| 55 | </div> |
| 56 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 57 | <div class='int-app-main-intents'> |
| 58 | <div class="tabular-header"> |
| 59 | <h2>Installed INT Intents ({{tableData.length}} total)</h2> |
| 60 | <div class="ctrl-btns"> |
| 61 | <div class="refresh" ng-class="{active: autoRefresh}" |
| 62 | icon icon-id="refresh" icon-size="36" |
| 63 | tooltip tt-msg="autoRefreshTip" |
| 64 | ng-click="toggleRefresh()"> |
| 65 | </div> |
| 66 | |
| 67 | <!-- tooltip tt-msg="uninstallTip" --> |
| 68 | <div icon icon-size="42" icon-id="garbage" |
| 69 | ng-click="delIntIntent()" |
| 70 | ng-class="{active: ctrlBtnState.selection}"> |
| 71 | </div> |
| 72 | </div> |
| 73 | </div> |
| 74 | |
| 75 | <div class="summary-list" onos-table-resize> |
| 76 | |
| 77 | <div class="table-header" onos-sortable-header> |
| 78 | <table> |
| 79 | <tr> |
| 80 | <td colId="id" sortable>ID </td> |
| 81 | <td colId="srcAddr" sortable>Src Address </td> |
| 82 | <td colId="dstAddr" sortable>Dst Address </td> |
| 83 | <td colId="srcPort" sortable>Src Port </td> |
| 84 | <td colId="dstPort" sortable>Dst Port </td> |
| 85 | <td colId="protocol" sortable>Protocol </td> |
| 86 | <td colId="metadata" sortable>Metadata </td> |
| 87 | </tr> |
| 88 | </table> |
| 89 | </div> |
| 90 | |
| 91 | <div class="table-body"> |
| 92 | <table> |
| 93 | <tr ng-repeat="item in tableData track by $index" |
| 94 | ng-click="selectCallback($event, item)" |
| 95 | ng-class="{selected: item.id === selId}"> |
| 96 | <td>{{item.id}}</td> |
| 97 | <td>{{item.srcAddr}}</td> |
| 98 | <td>{{item.dstAddr}}</td> |
| 99 | <td>{{item.srcPort}}</td> |
| 100 | <td>{{item.dstPort}}</td> |
| 101 | <td>{{item.protocol}}</td> |
| 102 | <td>{{item.metadata}}</td> |
| 103 | </tr> |
| 104 | </table> |
| 105 | </div> |
| 106 | |
| 107 | </div> |
| 108 | </div> |
| 109 | </div> |
| 110 | <!-- +++++++++++++++++++++ --> |