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_18_onos.json b/web/gui/src/main/webapp/json/ev/traffic/ev_18_onos.json
new file mode 100644
index 0000000..571ba99
--- /dev/null
+++ b/web/gui/src/main/webapp/json/ev/traffic/ev_18_onos.json
@@ -0,0 +1,50 @@
+{
+ "event": "showTraffic",
+ "sid": 1,
+ "payload": {
+ "paths": [
+ {
+ "intentId": "0x1234",
+ "links": [
+ "of:0000ffffffff0008/2-of:0000ffffffff0003/1"
+ ],
+ "class": "primary"
+ },
+ {
+ "intentId": "0x4321",
+ "links": [
+ "of:0000ffffffff0003/9-of:0000ffffffff0007/2"
+ ],
+ "class": "secondary"
+ },
+ {
+ "intentId": "0xbabe",
+ "links": [
+ "of:0000ffffffff0008/4-of:0000ffffffff0007/1"
+ ],
+ "class": "animated"
+ },
+ {
+ "intentId": "0xbab1",
+ "links": [
+ "of:0000ffffffff0008/4-of:0000ffffffffff08/1"
+ ],
+ "class": "primary optical"
+ },
+ {
+ "intentId": "0xbab2",
+ "links": [
+ "of:0000ffffffff0003/4-of:0000ffffffffff03/1"
+ ],
+ "class": "secondary optical"
+ },
+ {
+ "intentId": "0xbab3",
+ "links": [
+ "of:0000ffffffffff08/4-of:0000ffffffffff03/1"
+ ],
+ "class": "animated optical"
+ }
+ ]
+ }
+}