Matteo Scandolo | f0c3226 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 1 | <div class="row"> |
Matteo Scandolo | c105c1c | 2016-03-12 09:17:14 -0800 | [diff] [blame] | 2 | <div class="col-xs-12"> |
| 3 | <h2>Virtual Truck Roll</h2> |
| 4 | <p>Use this page to run test against your subscriber</p> |
| 5 | </div> |
Matteo Scandolo | f0c3226 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 6 | </div> |
| 7 | <form ng-submit="vm.runTest()"> |
| 8 | <div class="row"> |
| 9 | <div class="col-xs-12"> |
| 10 | <label>Target:</label> |
| 11 | </div> |
| 12 | <div class="col-xs-12"> |
| 13 | <select class="form-control" ng-model="vm.truckroll.target_id" ng-options="s.id as s.humanReadableName for s in vm.subscribers"></select> |
| 14 | </div> |
| 15 | </div> |
| 16 | <div class="row"> |
| 17 | <div class="col-xs-12"> |
| 18 | <label>Scope:</label> |
| 19 | </div> |
| 20 | <div class="col-xs-6"> |
| 21 | <a |
| 22 | ng-click="vm.truckroll.scope = 'container'" |
| 23 | ng-class="{'btn-default': vm.truckroll.scope !== 'container', 'btn-primary': vm.truckroll.scope === 'container'}" |
| 24 | class="btn btn-block" |
| 25 | > |
| 26 | Container |
| 27 | </a> |
| 28 | </div> |
| 29 | <div class="col-xs-6"> |
| 30 | <a |
| 31 | ng-click="vm.truckroll.scope = 'vm'" |
| 32 | ng-class="{'btn-default': vm.truckroll.scope !== 'vm', 'btn-primary': vm.truckroll.scope === 'vm'}" |
| 33 | class="btn btn-block" |
| 34 | > |
| 35 | VM |
| 36 | </a> |
| 37 | </div> |
| 38 | </div> |
| 39 | <div class="row"> |
| 40 | <div class="col-xs-12"> |
| 41 | <label>Test:</label> |
| 42 | </div> |
| 43 | <div class="col-xs-4"> |
| 44 | <a |
| 45 | ng-click="vm.truckroll.test = 'ping'" |
| 46 | ng-class="{'btn-default': vm.truckroll.test !== 'ping', 'btn-primary': vm.truckroll.test === 'ping'}" |
| 47 | class="btn btn-block">Ping</a> |
| 48 | </div> |
| 49 | <div class="col-xs-4"> |
| 50 | <a |
| 51 | ng-click="vm.truckroll.test = 'traceroute'" |
| 52 | ng-class="{'btn-default': vm.truckroll.test !== 'traceroute', 'btn-primary': vm.truckroll.test === 'traceroute'}" |
| 53 | class="btn btn-block">Traceroute</a> |
| 54 | </div> |
| 55 | <div class="col-xs-4"> |
| 56 | <a |
| 57 | ng-click="vm.truckroll.test = 'tcpdump'" |
| 58 | ng-class="{'btn-default': vm.truckroll.test !== 'tcpdump', 'btn-primary': vm.truckroll.test === 'tcpdump'}" |
| 59 | class="btn btn-block">Tcp Dump</a> |
| 60 | </div> |
| 61 | </div> |
| 62 | <div class="row"> |
| 63 | <div class="col-xs-12"> |
| 64 | <label>Argument:</label> |
| 65 | </div> |
| 66 | <div class="col-xs-12"> |
Matteo Scandolo | f0e8a66 | 2016-03-11 16:09:44 -0800 | [diff] [blame] | 67 | <input type="text" class="form-control" ng-model="vm.truckroll.argument" required /> |
Matteo Scandolo | f0c3226 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 68 | </div> |
| 69 | </div> |
| 70 | <div class="row"> |
| 71 | <div class="col-xs-12" ng-show="!vm.loader"> |
| 72 | <button class="btn btn-success btn-block">Run test</button> |
| 73 | </div> |
Matteo Scandolo | c105c1c | 2016-03-12 09:17:14 -0800 | [diff] [blame] | 74 | </div> |
| 75 | </form> |
| 76 | <div class="row"> |
| 77 | <div class="col-xs-12 animate-vertical" ng-show="vm.loader"> |
Matteo Scandolo | f0c3226 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 78 | <div class="loader"></div> |
| 79 | </div> |
| 80 | </div> |
Matteo Scandolo | 3147317 | 2016-03-11 15:01:01 -0800 | [diff] [blame] | 81 | <div class="row" ng-hide="!vm.truckroll.result_code"> |
| 82 | <div class="col-xs-12"> |
| 83 | <label>Result Code</label> |
Matteo Scandolo | f0c3226 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 84 | </div> |
Matteo Scandolo | 3147317 | 2016-03-11 15:01:01 -0800 | [diff] [blame] | 85 | <div class="col-xs-12"> |
| 86 | <pre>{{vm.truckroll.result_code}}</pre> |
Matteo Scandolo | f0c3226 | 2016-03-11 13:47:27 -0800 | [diff] [blame] | 87 | </div> |
Matteo Scandolo | 3147317 | 2016-03-11 15:01:01 -0800 | [diff] [blame] | 88 | </div> |
| 89 | <div class="row" ng-hide="!vm.truckroll.result"> |
| 90 | <div class="col-xs-12"> |
| 91 | <label> |
| 92 | Result: |
| 93 | </label> |
| 94 | </div> |
| 95 | <div class="col-xs-12"> |
| 96 | <pre>{{vm.truckroll.result}}</pre> |
| 97 | </div> |
| 98 | </div> |
Matteo Scandolo | 94e7009 | 2016-03-11 15:12:20 -0800 | [diff] [blame] | 99 | <div class="row" ng-hide="!vm.truckroll.backend_status"> |
| 100 | <div class="col-xs-12"> |
Matteo Scandolo | c105c1c | 2016-03-12 09:17:14 -0800 | [diff] [blame] | 101 | <label>Backend Status</label> |
Matteo Scandolo | 94e7009 | 2016-03-11 15:12:20 -0800 | [diff] [blame] | 102 | </div> |
| 103 | <div class="col-xs-12"> |
| 104 | <pre>{{vm.truckroll.backend_status}}</pre> |
| 105 | </div> |
Matteo Scandolo | c105c1c | 2016-03-12 09:17:14 -0800 | [diff] [blame] | 106 | </div> |