Skip to content

Commit

Permalink
ui: specify number of packets to inject
Browse files Browse the repository at this point in the history
Change-Id: Ifeeee5c37f75c92edcb6993e6052dfefeddc0381
Reviewed-on: http://softwarefactory-project.io/r/5382
Reviewed-by: Sylvain Afchain <safchain@gmail.com>
Tested-by: Sylvain Afchain <safchain@gmail.com>
Workflow: Sylvain Afchain <safchain@gmail.com>
Tested-by: Jenkins CI <jenkins@softwarefactory-project.io>
  • Loading branch information
masco authored and Jenkins CI committed Nov 17, 2016
1 parent 7971233 commit 1dbec78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion statics/js/skydive.js
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,8 @@ function SetupPacketGenerator() {
data: JSON.stringify({
"Src": "G.V().Has('TID', '" + node1 + "')",
"Dst": "G.V().Has('TID', '" + node2 + "')",
"Type": $("#inject-type").val()
"Type": $("#inject-type").val(),
"Count": parseInt($("#inject-count").val())
}),
contentType: "application/json; charset=utf-8",
method: 'POST',
Expand Down
2 changes: 2 additions & 0 deletions statics/topology.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@
<span class="fa fa-crosshairs form-control-feedback"></span>
</div>
<br/>
<label>No. of packets: </label></br>
<input type="number" id="inject-count" class="capture_input" min="1" value="1"/><br/>
<input type="button" class="btn btn-primary" id="inject-packet" value="Inject"/>
<br/>
</form>
Expand Down

0 comments on commit 1dbec78

Please sign in to comment.