Simon Hunt

GUI -- Updated 'simple' scenario, and minor enhancement to mock server.

Change-Id: I08b015ad81d5b356d63edaa779418a5445d24edf
Showing 18 changed files with 51 additions and 18 deletions
{
"event": "addInstance",
"payload": {
"id": "myInstA",
"ip": "192.168.56.101",
"online": true,
"uiAttached": true,
"switches": 2,
"labels": [
"myInstA",
"192.168.56.101"
]
}
}
{
"event": "addInstance",
"payload": {
"id": "myInstB",
"ip": "192.168.56.102",
"online": true,
"uiAttached": false,
"switches": 4,
"labels": [
"myInstB",
"192.168.56.102"
]
}
}
......@@ -4,6 +4,7 @@
"id": "of:0000ffffffff0008",
"type": "switch",
"online": false,
"master": "myInstA",
"location": {
"type": "latlng",
"lat": 37.7833,
......
......@@ -4,6 +4,7 @@
"id": "of:0000ffffffff0003",
"type": "switch",
"online": false,
"master": "myInstB",
"location": {
"type": "latlng",
"lat": 40.7127,
......
......@@ -4,6 +4,7 @@
"id": "of:0000ffffffff0008",
"type": "switch",
"online": true,
"master": "myInstA",
"labels": [
"",
"switch-8",
......
......@@ -4,6 +4,7 @@
"id": "of:0000ffffffff0003",
"type": "switch",
"online": true,
"master": "myInstB",
"labels": [
"",
"switch-3",
......
......@@ -8,23 +8,23 @@
"lastAuto": 0
},
"description": [
"Press 'H' to show hosts.",
"Simple sequence of events...",
"",
"Press '-' to fire further events.",
"",
"1. add device [8] (offline)",
"2. add device [3] (offline)",
"3. update device [8] (online, label3 change)",
"4. update device [3] (online, label3 change)",
"5. add link [3] --> [8]",
"6. add host (to [3])",
"7. add host (to [8])",
"8. update host[3] (IP now 10.0.0.13)",
"9. update host[8] (IP now 10.0.0.17)",
"10. update link (increase width, update props)",
"11. update link (reduce width, update props)",
"12. remove link",
"13. remove host (10.0.0.17)",
"13. remove device [3]"
"1. add instance A",
"2. add instance B",
"3. add device [8] (offline)",
"4. add device [3] (offline)",
"5. update device [8] (online, label3 change)",
"6. update device [3] (online, label3 change)",
"7. add link [3] --> [8]",
"8. add host (to [3])",
"9. add host (to [8])",
"10. update host[3] (IP now 10.0.0.13)",
"11. update host[8] (IP now 10.0.0.17)",
"12. update link (increase width, update props)",
"13. update link (reduce width, update props)",
"14. remove link",
"15. remove host (10.0.0.17)",
"16. remove device [3]"
]
}
......
......@@ -281,7 +281,8 @@ function nextEvent() {
} else {
evdata = JSON.parse(data);
console.log(); // get past prompt
console.log('Sending event #' + evno + ' [' + evdata.event + ']');
console.log('Sending event #' + evno + ' [' + evdata.event +
'] from ' + eventsById[evno].fname);
connection.sendUTF(data);
evno++;
}
......