blob: 3957e6da2999fd75ce86ccc1a1793af73ab007cd [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
Matteo Scandolod7552052016-03-11 13:47:27 -080019<div class="row">
Matteo Scandolo6970a812016-03-12 09:17:14 -080020 <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 Scandolod7552052016-03-11 13:47:27 -080024</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 Scandolo383f2352016-03-11 16:09:44 -080085 <input type="text" class="form-control" ng-model="vm.truckroll.argument" required />
Matteo Scandolod7552052016-03-11 13:47:27 -080086 </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 Scandolo6970a812016-03-12 09:17:14 -080092 </div>
93</form>
94<div class="row">
95 <div class="col-xs-12 animate-vertical" ng-show="vm.loader">
Matteo Scandolod7552052016-03-11 13:47:27 -080096 <div class="loader"></div>
97 </div>
98 </div>
Matteo Scandolocc9930e2016-03-11 15:01:01 -080099 <div class="row" ng-hide="!vm.truckroll.result_code">
100 <div class="col-xs-12">
101 <label>Result Code</label>
Matteo Scandolod7552052016-03-11 13:47:27 -0800102 </div>
Matteo Scandolocc9930e2016-03-11 15:01:01 -0800103 <div class="col-xs-12">
104 <pre>{{vm.truckroll.result_code}}</pre>
Matteo Scandolod7552052016-03-11 13:47:27 -0800105 </div>
Matteo Scandolocc9930e2016-03-11 15:01:01 -0800106 </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 Scandolob678b482016-03-11 15:12:20 -0800117 <div class="row" ng-hide="!vm.truckroll.backend_status">
118 <div class="col-xs-12">
Matteo Scandolo6970a812016-03-12 09:17:14 -0800119 <label>Backend Status</label>
Matteo Scandolob678b482016-03-11 15:12:20 -0800120 </div>
121 <div class="col-xs-12">
122 <pre>{{vm.truckroll.backend_status}}</pre>
123 </div>
Matteo Scandolo6970a812016-03-12 09:17:14 -0800124 </div>