Thomas Vachuska
Committed by Gerrit Code Review

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

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