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 + "paths": [
6 + {
5 "intentId": "0x1234", 7 "intentId": "0x1234",
6 - "path": {
7 "links": [ "1-2", "2-3" ], 8 "links": [ "1-2", "2-3" ],
8 - "traffic": false 9 + "class": "primary"
10 + },
11 + {
12 + "intentId": "0x4321",
13 + "links": [ "5-6", "6-7" ],
14 + "class": "secondary"
9 } 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 + "paths": [
6 + {
5 "intentId": "0x1234", 7 "intentId": "0x1234",
6 - "path": {
7 "links": [ "1-2", "2-3" ], 8 "links": [ "1-2", "2-3" ],
8 - "traffic": true, 9 + "class": "animated",
9 - "srcLabel": "567 Mb", 10 + "labels": [ "9Gb", "9Gb" ]
10 - "dstLabel": "6 Mb" 11 + },
12 + {
13 + "intentId": "0x4321",
14 + "links": [ "5-6", "6-7" ],
15 + "class": "animated",
16 + "traffic": [ "4GB", "4GB" ]
11 } 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 + "paths": [
6 + {
5 "intentId": "0x1234", 7 "intentId": "0x1234",
6 - "path": {
7 "links": [ "1-2", "2-3" ], 8 "links": [ "1-2", "2-3" ],
8 - "traffic": true, 9 + "class": "animated",
9 - "srcLabel": "967 Mb", 10 + "labels": [ "17Gb", "16Gb" ]
10 - "dstLabel": "65 Mb" 11 + },
12 + {
13 + "intentId": "0x4321",
14 + "links": [ "5-6", "6-7" ],
15 + "class": "animated",
16 + "labels": [ "9Gb", "5Gb" ]
11 } 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 + "paths": [
6 + {
5 "intentId": "0x1234", 7 "intentId": "0x1234",
6 - "path": {
7 "links": [ "1-2", "2-3" ], 8 "links": [ "1-2", "2-3" ],
8 - "traffic": false 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" ]
9 } 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 +}