Thomas Vachuska
Committed by Gerrit Code Review

Sketching out request/showTraffic interactions between GUI server/client.

Change-Id: I78dfe0da6a7b4e03972a8ef11190101614d81a63
1 { 1 {
2 - "event": "showPath", 2 + "event": "showTraffic",
3 "sid": 1, 3 "sid": 1,
4 "payload": { 4 "payload": {
5 - "intentId": "0x1234", 5 + "paths": [
6 - "path": { 6 + {
7 - "links": [ "1-2", "2-3" ], 7 + "intentId": "0x1234",
8 - "traffic": false 8 + "links": [ "1-2", "2-3" ],
9 - } 9 + "class": "primary"
10 + },
11 + {
12 + "intentId": "0x4321",
13 + "links": [ "5-6", "6-7" ],
14 + "class": "secondary"
15 + }
16 + ]
10 } 17 }
11 } 18 }
......
1 { 1 {
2 - "event": "monitorIntent", 2 + "event": "requestTraffic",
3 "sid": 2, 3 "sid": 2,
4 "payload": { 4 "payload": {
5 - "intentId": "0x1234" 5 + "ids": [ "00:00:00:00:00:01/-1", "00:00:00:00:00:02/-1" ]
6 } 6 }
7 } 7 }
......
...@@ -2,12 +2,19 @@ ...@@ -2,12 +2,19 @@
2 "event": "showPath", 2 "event": "showPath",
3 "sid": 2, 3 "sid": 2,
4 "payload": { 4 "payload": {
5 - "intentId": "0x1234", 5 + "paths": [
6 - "path": { 6 + {
7 - "links": [ "1-2", "2-3" ], 7 + "intentId": "0x1234",
8 - "traffic": true, 8 + "links": [ "1-2", "2-3" ],
9 - "srcLabel": "567 Mb", 9 + "class": "animated",
10 - "dstLabel": "6 Mb" 10 + "labels": [ "9Gb", "9Gb" ]
11 - } 11 + },
12 + {
13 + "intentId": "0x4321",
14 + "links": [ "5-6", "6-7" ],
15 + "class": "animated",
16 + "traffic": [ "4GB", "4GB" ]
17 + }
18 + ]
12 } 19 }
13 } 20 }
......
1 { 1 {
2 - "event": "showPath", 2 + "event": "showTraffic",
3 "sid": 2, 3 "sid": 2,
4 "payload": { 4 "payload": {
5 - "intentId": "0x1234", 5 + "paths": [
6 - "path": { 6 + {
7 - "links": [ "1-2", "2-3" ], 7 + "intentId": "0x1234",
8 - "traffic": true, 8 + "links": [ "1-2", "2-3" ],
9 - "srcLabel": "967 Mb", 9 + "class": "animated",
10 - "dstLabel": "65 Mb" 10 + "labels": [ "17Gb", "16Gb" ]
11 - } 11 + },
12 + {
13 + "intentId": "0x4321",
14 + "links": [ "5-6", "6-7" ],
15 + "class": "animated",
16 + "labels": [ "9Gb", "5Gb" ]
17 + }
18 + ]
12 } 19 }
13 } 20 }
......
1 { 1 {
2 - "event": "showPath", 2 + "event": "showTraffic",
3 "sid": 2, 3 "sid": 2,
4 "payload": { 4 "payload": {
5 - "intentId": "0x1234", 5 + "paths": [
6 - "path": { 6 + {
7 - "links": [ "1-2", "2-3" ], 7 + "intentId": "0x1234",
8 - "traffic": false 8 + "links": [ "1-2", "2-3" ],
9 - } 9 + "class": "primary",
10 + "labels": [ "17Gb", "16Gb" ]
11 + },
12 + {
13 + "intentId": "0x4321",
14 + "links": [ "5-6", "6-7" ],
15 + "class": "secondary",
16 + "labels": [ "9Gb", "5Gb" ]
17 + }
18 + ]
10 } 19 }
11 } 20 }
......
1 { 1 {
2 - "event": "cancelMonitorIntent", 2 + "event": "cancelTraffic",
3 "sid": 3, 3 "sid": 3,
4 "payload": { 4 "payload": {
5 - "intentId": "0x1234"
6 } 5 }
7 } 6 }
......
1 +{
2 + "event": "showTraffic",
3 + "sid": 3,
4 + "payload": {
5 + "paths": []
6 + }
7 +}