Skip to content
Snippets Groups Projects
Commit 0e336846 authored by Ryan Izard's avatar Ryan Izard
Browse files

Testing to see if a commit is preventing the js file from being updated and yet again.

parent 0bfa94ee
No related branches found
No related tags found
No related merge requests found
......@@ -191,19 +191,47 @@ window.Switch = Backbone.Model.extend({
if(f.hasOwnProperty('instructions')) {
if(f.instructions.hasOwnProperty('instruction_apply_actions')) {
_.each(f.instructions.instruction_apply_actions, function(value, key) {
f.applyActionText += key + ":" + value +" ";
f.applyActionText += key + ":" + value + " ";
},f);
}
if(f.instructions.hasOwnProperty('instruction_write_actions')) {
_.each(f.instructions.instruction_write_actions, function(value, key) {
f.writeActionText += key + ":" + value +" ";
f.writeActionText += key + ":" + value + " ";
},f);
}
if(f.instructions.hasOwnProperty('instruction_clear_actions')) {
f.clearActionText = "clear";
}
if(f.instructions.hasOwnProperty('instruction_write_metadata')) {
f.writeMetadataText = f.instructions.instruction_write_metadata;
}
if(f.instructions.hasOwnProperty('instruction_goto_group')) {
f.gotoGroupText = f.instructions.instruction_goto_group;
}
if(f.instructions.hasOwnProperty('instruction_goto_meter')) {
f.gotoMeterText = f.instructions.instruction_goto_meter;
}
}
// build human-readable action list
// build human-readable instrucions
f.applyActionText = f.applyActionText.substr(0, f.applyActionText.length - 1);
f.writeActionText = f.writeActionText.substr(0, f.writeActionText.length - 1);
f.clearActionText = f.clearActionText.substr(0, f.clearActionText.length - 1);
f.writeMetadataText = f.writeMetadataText.substr(0, f.writeMetadataText.length - 1);
f.gotoGroupText = f.gotoGroupText.substr(0, f.gotoGroupText.length - 1);
f.gotoMeterText = f.gotoMeterText.substr(0, f.gotoMeterText.length - 1);
// table
f.table = '';
if(f.hasOwnProperty('tableId')) {
f.table = f.tableId;
}
f.table = f.table.substr(0, f.table.length - 1);
//console.log(f);
self.flows.add(f, {silent: true});
});
......
<td><%= cookie %></td><td><%= priority %></td><td><%= matchHTML %></td><td><%= applyActionText %></td><td><%= writeActionText %></td><td><%= clearActionText %></td><td><%= gotoGroupText %></td><td><%= gotoMeterText %></td><td><%= writeMetadataText %></td><td><%= experimenterText %></td><td><%= packetCount %></td><td><%= byteCount %></td><td><%= durationSeconds %> s</td><td><%= idleTimeoutSec %> s</td>
<td><%= cookie %></td><%= table %></td><td><%= priority %></td><td><%= matchHTML %></td><td><%= applyActionText %></td><td><%= writeActionText %></td><td><%= clearActionText %></td><td><%= gotoGroupText %></td><td><%= gotoMeterText %></td><td><%= writeMetadataText %></td><td><%= experimenterText %></td><td><%= packetCount %></td><td><%= byteCount %></td><td><%= durationSeconds %></td><td><%= idleTimeoutSec %></td>
......@@ -2,7 +2,7 @@
<h1>Flows (<%= nflows %>)</h1>
</div>
<table class="table table-striped flow-table">
<thead><tr><th>Cookie</th><th>Priority</th><th>Match</th><th>Apply Actions</th><th>Write Actions</th><th>Clear Actions</th><th>Goto Group</th><th>Goto Meter</th><th>Write Metadata</th><th>Experimenter</th><th>Packets</th><th>Bytes</th><th>Age</th><th>Timeout</th></tr></thead>
<thead><tr><th>Cookie</th><th>Table</th><th>Priority</th><th>Match</th><th>Apply Actions</th><th>Write Actions</th><th>Clear Actions</th><th>Goto Group</th><th>Goto Meter</th><th>Write Metadata</th><th>Experimenter</th><th>Packets</th><th>Bytes</th><th>Age (s)</th><th>Timeout (s)</th></tr></thead>
<tbody>
<!-- flows will be inserted here by FlowListView:render -->
</tbody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment