Simon Hunt

GUI - Added more events to 'links' scenario, so we can use it as a basis for tes…

…ting showPath/showTraffic.

Change-Id: I6fa428931450930ba0e725443e211205b5c6af98
1 +{
2 + "event": "addLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0003/10-of:0000ffffffff0007/20",
5 + "type": "direct",
6 + "online": true,
7 + "linkWidth": 2,
8 + "src": "of:0000ffffffff0003",
9 + "srcPort": "10",
10 + "dst": "of:0000ffffffff0007",
11 + "dstPort": "20",
12 + "props" : {
13 + "BW": "90 Gb"
14 + }
15 + }
16 +}
1 +{
2 + "event": "addLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0007/20-of:0000ffffffff0003/10",
5 + "type": "direct",
6 + "online": true,
7 + "linkWidth": 2,
8 + "src": "of:0000ffffffff0007",
9 + "srcPort": "20",
10 + "dst": "of:0000ffffffff0003",
11 + "dstPort": "10",
12 + "props" : {
13 + "BW": "90 Gb"
14 + }
15 + }
16 +}
1 +{
2 + "event": "updateLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0003/20-of:0000ffffffff0008/10",
5 + "type": "direct",
6 + "online": true,
7 + "linkWidth": 2,
8 + "src": "of:0000ffffffff0003",
9 + "srcPort": "20",
10 + "dst": "of:0000ffffffff0008",
11 + "dstPort": "10",
12 + "props" : {
13 + "BW": "90 Gb"
14 + }
15 + }
16 +}
1 +{
2 + "event": "updateLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0008/10-of:0000ffffffff0003/20",
5 + "type": "direct",
6 + "online": true,
7 + "linkWidth": 2,
8 + "src": "of:0000ffffffff0008",
9 + "srcPort": "10",
10 + "dst": "of:0000ffffffff0003",
11 + "dstPort": "20",
12 + "props" : {
13 + "BW": "90 Gb"
14 + }
15 + }
16 +}
...@@ -268,6 +268,7 @@ ...@@ -268,6 +268,7 @@
268 } 268 }
269 } else { 269 } else {
270 testDebug('loaded: ' + frame.url); 270 testDebug('loaded: ' + frame.url);
271 + wsTrace('test', JSON.stringify(data));
271 frame.cb(data); 272 frame.cb(data);
272 } 273 }
273 }); 274 });
......