blob: f0c2dbe67c0833d4912de9a9ba930b6d572bfcc5 [file] [log] [blame]
Matteo Scandolod7552052016-03-11 13:47:27 -08001<div class="row">
Matteo Scandolo6970a812016-03-12 09:17:14 -08002 <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 Scandolod7552052016-03-11 13:47:27 -08006</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 Scandolo383f2352016-03-11 16:09:44 -080067 <input type="text" class="form-control" ng-model="vm.truckroll.argument" required />
Matteo Scandolod7552052016-03-11 13:47:27 -080068 </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 Scandolo6970a812016-03-12 09:17:14 -080074 </div>
75</form>
76<div class="row">
77 <div class="col-xs-12 animate-vertical" ng-show="vm.loader">
Matteo Scandolod7552052016-03-11 13:47:27 -080078 <div class="loader"></div>
79 </div>
80 </div>
Matteo Scandolocc9930e2016-03-11 15:01:01 -080081 <div class="row" ng-hide="!vm.truckroll.result_code">
82 <div class="col-xs-12">
83 <label>Result Code</label>
Matteo Scandolod7552052016-03-11 13:47:27 -080084 </div>
Matteo Scandolocc9930e2016-03-11 15:01:01 -080085 <div class="col-xs-12">
86 <pre>{{vm.truckroll.result_code}}</pre>
Matteo Scandolod7552052016-03-11 13:47:27 -080087 </div>
Matteo Scandolocc9930e2016-03-11 15:01:01 -080088 </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 Scandolob678b482016-03-11 15:12:20 -080099 <div class="row" ng-hide="!vm.truckroll.backend_status">
100 <div class="col-xs-12">
Matteo Scandolo6970a812016-03-12 09:17:14 -0800101 <label>Backend Status</label>
Matteo Scandolob678b482016-03-11 15:12:20 -0800102 </div>
103 <div class="col-xs-12">
104 <pre>{{vm.truckroll.backend_status}}</pre>
105 </div>
Matteo Scandolo6970a812016-03-12 09:17:14 -0800106 </div>