Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Matteo Scandolo | d755205 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 19 | <div class="row"> |
Matteo Scandolo | 6970a81 | 2016-03-12 09:17:14 -0800 | [diff] [blame] | 20 | <div class="col-xs-12"> |
| 21 | <h2>Virtual Truck Roll</h2> |
| 22 | <p>Use this page to run test against your subscriber</p> |
| 23 | </div> |
Matteo Scandolo | d755205 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 24 | </div> |
| 25 | <form ng-submit="vm.runTest()"> |
| 26 | <div class="row"> |
| 27 | <div class="col-xs-12"> |
| 28 | <label>Target:</label> |
| 29 | </div> |
| 30 | <div class="col-xs-12"> |
| 31 | <select class="form-control" ng-model="vm.truckroll.target_id" ng-options="s.id as s.humanReadableName for s in vm.subscribers"></select> |
| 32 | </div> |
| 33 | </div> |
| 34 | <div class="row"> |
| 35 | <div class="col-xs-12"> |
| 36 | <label>Scope:</label> |
| 37 | </div> |
| 38 | <div class="col-xs-6"> |
| 39 | <a |
| 40 | ng-click="vm.truckroll.scope = 'container'" |
| 41 | ng-class="{'btn-default': vm.truckroll.scope !== 'container', 'btn-primary': vm.truckroll.scope === 'container'}" |
| 42 | class="btn btn-block" |
| 43 | > |
| 44 | Container |
| 45 | </a> |
| 46 | </div> |
| 47 | <div class="col-xs-6"> |
| 48 | <a |
| 49 | ng-click="vm.truckroll.scope = 'vm'" |
| 50 | ng-class="{'btn-default': vm.truckroll.scope !== 'vm', 'btn-primary': vm.truckroll.scope === 'vm'}" |
| 51 | class="btn btn-block" |
| 52 | > |
| 53 | VM |
| 54 | </a> |
| 55 | </div> |
| 56 | </div> |
| 57 | <div class="row"> |
| 58 | <div class="col-xs-12"> |
| 59 | <label>Test:</label> |
| 60 | </div> |
| 61 | <div class="col-xs-4"> |
| 62 | <a |
| 63 | ng-click="vm.truckroll.test = 'ping'" |
| 64 | ng-class="{'btn-default': vm.truckroll.test !== 'ping', 'btn-primary': vm.truckroll.test === 'ping'}" |
| 65 | class="btn btn-block">Ping</a> |
| 66 | </div> |
| 67 | <div class="col-xs-4"> |
| 68 | <a |
| 69 | ng-click="vm.truckroll.test = 'traceroute'" |
| 70 | ng-class="{'btn-default': vm.truckroll.test !== 'traceroute', 'btn-primary': vm.truckroll.test === 'traceroute'}" |
| 71 | class="btn btn-block">Traceroute</a> |
| 72 | </div> |
| 73 | <div class="col-xs-4"> |
| 74 | <a |
| 75 | ng-click="vm.truckroll.test = 'tcpdump'" |
| 76 | ng-class="{'btn-default': vm.truckroll.test !== 'tcpdump', 'btn-primary': vm.truckroll.test === 'tcpdump'}" |
| 77 | class="btn btn-block">Tcp Dump</a> |
| 78 | </div> |
| 79 | </div> |
| 80 | <div class="row"> |
| 81 | <div class="col-xs-12"> |
| 82 | <label>Argument:</label> |
| 83 | </div> |
| 84 | <div class="col-xs-12"> |
Matteo Scandolo | 383f235 | 2016-03-11 16:09:44 -0800 | [diff] [blame] | 85 | <input type="text" class="form-control" ng-model="vm.truckroll.argument" required /> |
Matteo Scandolo | d755205 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 86 | </div> |
| 87 | </div> |
| 88 | <div class="row"> |
| 89 | <div class="col-xs-12" ng-show="!vm.loader"> |
| 90 | <button class="btn btn-success btn-block">Run test</button> |
| 91 | </div> |
Matteo Scandolo | 6970a81 | 2016-03-12 09:17:14 -0800 | [diff] [blame] | 92 | </div> |
| 93 | </form> |
| 94 | <div class="row"> |
| 95 | <div class="col-xs-12 animate-vertical" ng-show="vm.loader"> |
Matteo Scandolo | d755205 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 96 | <div class="loader"></div> |
| 97 | </div> |
| 98 | </div> |
Matteo Scandolo | cc9930e | 2016-03-11 15:01:01 -0800 | [diff] [blame] | 99 | <div class="row" ng-hide="!vm.truckroll.result_code"> |
| 100 | <div class="col-xs-12"> |
| 101 | <label>Result Code</label> |
Matteo Scandolo | d755205 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 102 | </div> |
Matteo Scandolo | cc9930e | 2016-03-11 15:01:01 -0800 | [diff] [blame] | 103 | <div class="col-xs-12"> |
| 104 | <pre>{{vm.truckroll.result_code}}</pre> |
Matteo Scandolo | d755205 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 105 | </div> |
Matteo Scandolo | cc9930e | 2016-03-11 15:01:01 -0800 | [diff] [blame] | 106 | </div> |
| 107 | <div class="row" ng-hide="!vm.truckroll.result"> |
| 108 | <div class="col-xs-12"> |
| 109 | <label> |
| 110 | Result: |
| 111 | </label> |
| 112 | </div> |
| 113 | <div class="col-xs-12"> |
| 114 | <pre>{{vm.truckroll.result}}</pre> |
| 115 | </div> |
| 116 | </div> |
Matteo Scandolo | b678b48 | 2016-03-11 15:12:20 -0800 | [diff] [blame] | 117 | <div class="row" ng-hide="!vm.truckroll.backend_status"> |
| 118 | <div class="col-xs-12"> |
Matteo Scandolo | 6970a81 | 2016-03-12 09:17:14 -0800 | [diff] [blame] | 119 | <label>Backend Status</label> |
Matteo Scandolo | b678b48 | 2016-03-11 15:12:20 -0800 | [diff] [blame] | 120 | </div> |
| 121 | <div class="col-xs-12"> |
| 122 | <pre>{{vm.truckroll.backend_status}}</pre> |
| 123 | </div> |
Matteo Scandolo | 6970a81 | 2016-03-12 09:17:14 -0800 | [diff] [blame] | 124 | </div> |