GUI -- Added updateDevice event handling.
- Display offline devices as grey.
- Tracing web socket messages (for now, in console; in future, to trace view).
- Captured sample events for use with test scenarios - both from and to the server.
- Added description to scenario file.
Change-Id: I7825b32d63496ebea2ab5789519fb0c6af6c5257
diff --git a/web/gui/src/main/webapp/json/ev/simple/ev_3_onos.json b/web/gui/src/main/webapp/json/ev/simple/ev_3_onos.json
index ac521c4..73013a4 100644
--- a/web/gui/src/main/webapp/json/ev/simple/ev_3_onos.json
+++ b/web/gui/src/main/webapp/json/ev/simple/ev_3_onos.json
@@ -1,15 +1,18 @@
{
- "event": "addLink",
+ "event": "updateDevice",
"payload": {
- "id": "of:0000ffffffff0003/21-of:0000ffffffff0008/20",
- "type": "direct",
- "linkWidth": 2,
- "src": "of:0000ffffffff0003",
- "srcPort": "21",
- "dst": "of:0000ffffffff0008",
- "dstPort": "20",
- "props" : {
- "BW": "70 G"
+ "id": "of:0000ffffffff0008",
+ "type": "switch",
+ "online": true,
+ "labels": [
+ "0000ffffffff0008",
+ "FF:FF:FF:FF:00:08",
+ "sw-8-yo",
+ ""
+ ],
+ "metaUi": {
+ "x": 400,
+ "y": 280
}
}
}