GUI -- Added CSS classes for primary, secondary, animated, and optical links
- refactored showTraffic(...) to handle the updated payload.
- created 'traffic' scenario:: run with ... webapp/index2.html#topo,traffic?local
Change-Id: I5e3a33abcbc9c82f751165b4f52807f7cd59ef03
diff --git a/web/gui/src/main/webapp/json/ev/traffic/ev_17_onos.json b/web/gui/src/main/webapp/json/ev/traffic/ev_17_onos.json
new file mode 100644
index 0000000..0a1fd74
--- /dev/null
+++ b/web/gui/src/main/webapp/json/ev/traffic/ev_17_onos.json
@@ -0,0 +1,25 @@
+{
+ "event": "showTraffic",
+ "sid": 1,
+ "payload": {
+ "paths": [
+ {
+ "intentId": "0x4321",
+ "links": [
+ "0E:2A:69:30:13:86/-1/0-of:0000ffffffff0003/101",
+ "0E:2A:69:30:13:aa/-1/0-of:0000ffffffff0008/101"
+ ],
+ "class": "animated"
+ },
+ {
+ "intentId": "0xbab3",
+ "links": [
+ "of:0000ffffffff0003/4-of:0000ffffffffff03/1",
+ "of:0000ffffffff0008/4-of:0000ffffffffff08/1",
+ "of:0000ffffffffff08/4-of:0000ffffffffff03/1"
+ ],
+ "class": "animated optical"
+ }
+ ]
+ }
+}