blob: 9bbdb4cbef9210d28d8719d10977f5646dbe1127 [file] [log] [blame]
Matteo Scandolod7552052016-03-11 13:47:27 -08001<div class="row">
2 <h2>Virtual Truck Roll</h2>
3 <p>Use this page to run test against your subscriber</p>
4</div>
5<form ng-submit="vm.runTest()">
6 <div class="row">
7 <div class="col-xs-12">
8 <label>Target:</label>
9 </div>
10 <div class="col-xs-12">
11 <select class="form-control" ng-model="vm.truckroll.target_id" ng-options="s.id as s.humanReadableName for s in vm.subscribers"></select>
12 </div>
13 </div>
14 <div class="row">
15 <div class="col-xs-12">
16 <label>Scope:</label>
17 </div>
18 <div class="col-xs-6">
19 <a
20 ng-click="vm.truckroll.scope = 'container'"
21 ng-class="{'btn-default': vm.truckroll.scope !== 'container', 'btn-primary': vm.truckroll.scope === 'container'}"
22 class="btn btn-block"
23 >
24 Container
25 </a>
26 </div>
27 <div class="col-xs-6">
28 <a
29 ng-click="vm.truckroll.scope = 'vm'"
30 ng-class="{'btn-default': vm.truckroll.scope !== 'vm', 'btn-primary': vm.truckroll.scope === 'vm'}"
31 class="btn btn-block"
32 >
33 VM
34 </a>
35 </div>
36 </div>
37 <div class="row">
38 <div class="col-xs-12">
39 <label>Test:</label>
40 </div>
41 <div class="col-xs-4">
42 <a
43 ng-click="vm.truckroll.test = 'ping'"
44 ng-class="{'btn-default': vm.truckroll.test !== 'ping', 'btn-primary': vm.truckroll.test === 'ping'}"
45 class="btn btn-block">Ping</a>
46 </div>
47 <div class="col-xs-4">
48 <a
49 ng-click="vm.truckroll.test = 'traceroute'"
50 ng-class="{'btn-default': vm.truckroll.test !== 'traceroute', 'btn-primary': vm.truckroll.test === 'traceroute'}"
51 class="btn btn-block">Traceroute</a>
52 </div>
53 <div class="col-xs-4">
54 <a
55 ng-click="vm.truckroll.test = 'tcpdump'"
56 ng-class="{'btn-default': vm.truckroll.test !== 'tcpdump', 'btn-primary': vm.truckroll.test === 'tcpdump'}"
57 class="btn btn-block">Tcp Dump</a>
58 </div>
59 </div>
60 <div class="row">
61 <div class="col-xs-12">
62 <label>Argument:</label>
63 </div>
64 <div class="col-xs-12">
65 <input type="text" class="form-control" ng-model="vm.truckroll.argument"/>
66 </div>
67 </div>
68 <div class="row">
69 <div class="col-xs-12" ng-show="!vm.loader">
70 <button class="btn btn-success btn-block">Run test</button>
71 </div>
72 <div class="col-xs-12" ng-show="vm.loader">
73 <div class="loader"></div>
74 </div>
75 </div>
Matteo Scandolo30746462016-03-11 14:41:14 -080076 <section ng-hide="!vm.truckroll.is_synced">
77 <div class="row" style="margin-top: 20px">
78 <div class="col-xs-12" ng-hide="!vm.truckroll.result_code">
79 <label>Result Code</label>
80 </div>
81 <div class="col-xs-12">
82 <pre>{{vm.truckroll.result_code}}</pre>
83 </div>
Matteo Scandolod7552052016-03-11 13:47:27 -080084 </div>
Matteo Scandolo30746462016-03-11 14:41:14 -080085 <div class="row">
86 <div class="col-xs-12">
87 <label>
88 Result:
89 </label>
90 </div>
91 <div class="col-xs-12" ng-hide="!vm.truckroll.result">
92 <pre>{{vm.truckroll.result}}</pre>
93 </div>
Matteo Scandolod7552052016-03-11 13:47:27 -080094 </div>
Matteo Scandolo30746462016-03-11 14:41:14 -080095 </section>
Matteo Scandolod7552052016-03-11 13:47:27 -080096</form>