Simon Hunt

GUI -- added topo test scenario skeleton for showHighlights.

Change-Id: Ie2cf901bc37343618563b38b3825b03a4c0db668
1 +{
2 + "event": "addInstance",
3 + "payload": {
4 + "id": "ONOS",
5 + "ip": "192.168.56.101",
6 + "online": true,
7 + "uiAttached": true,
8 + "switches": 2,
9 + "labels": [
10 + "ONOS",
11 + "192.168.56.101"
12 + ]
13 + }
14 +}
1 +{
2 + "event": "addDevice",
3 + "payload": {
4 + "id": "of:0000000000000001",
5 + "type": "switch",
6 + "online": true,
7 + "master": "ONOS",
8 + "labels": [
9 + "",
10 + "switch-1",
11 + "of:0000000000000001"
12 + ],
13 + "metaUi": {
14 + "x": 200,
15 + "y": 200
16 + }
17 + }
18 +}
1 +{
2 + "event": "addDevice",
3 + "payload": {
4 + "id": "of:0000000000000002",
5 + "type": "switch",
6 + "online": true,
7 + "master": "ONOS",
8 + "labels": [
9 + "",
10 + "switch-2",
11 + "of:0000000000000002"
12 + ],
13 + "metaUi": {
14 + "x": 400,
15 + "y": 220
16 + }
17 + }
18 +}
1 +{
2 + "event": "addLink",
3 + "payload": {
4 + "id": "of:0000000000000001/5-of:0000000000000002/7",
5 + "type": "direct",
6 + "online": true,
7 + "linkWidth": 2,
8 + "src": "of:0000000000000001",
9 + "srcPort": "5",
10 + "dst": "of:0000000000000002",
11 + "dstPort": "7",
12 + "props" : {
13 + "BW": "70 Gb"
14 + }
15 + }
16 +}
1 +{
2 + "event": "showHighlights",
3 + "payload": {
4 + "devices": [],
5 + "hosts": [],
6 + "links": []
7 + }
8 +}
1 +{
2 + "event": "showHighlights",
3 + "payload": {
4 + "devices": [],
5 + "hosts": [],
6 + "links": [
7 + {
8 + "css": "primary",
9 + "id": "of:0000000000000001/5-of:0000000000000002/7",
10 + "label": "Antz!"
11 + }
12 + ]
13 + }
14 +}
1 +{
2 + "event": "showHighlights",
3 + "payload": {
4 + "devices": [],
5 + "hosts": [],
6 + "links": []
7 + }
8 +}
1 +{
2 + "comments": [
3 + "Demo of adding badges to devices"
4 + ],
5 + "title": "Demo adding badges",
6 + "params": {
7 + "lastAuto": 5
8 + },
9 + "description": [
10 + "Demonstrate the device badging feature."
11 + ]
12 +}
1 { 1 {
2 "comments": [ 2 "comments": [
3 - "Stepping through showTraffic" 3 + "Stepping through showTraffic",
4 + "NOTE: showTraffic event is deprecated",
5 + " This needs to be re-worked to use showHighlights"
4 ], 6 ],
5 "title": "Show Traffic Scenario", 7 "title": "Show Traffic Scenario",
6 "params": { 8 "params": {
......