Simon Hunt

GUI -- Major rework to link processing so that we consolidate links A->B and B->…

…A into a single backing object.
- added blue glow to ONOS instance when showing switch affinity.

Change-Id: Ia2a52d9d0571bc8c5eed964c85862f5798c7c5db
1 +{
2 + "event": "addLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0008/10-of:0000ffffffff0003/20",
5 + "type": "direct",
6 + "linkWidth": 2,
7 + "src": "of:0000ffffffff0008",
8 + "srcPort": "10",
9 + "dst": "of:0000ffffffff0003",
10 + "dstPort": "20",
11 + "props" : {
12 + "BW": "90 Gb"
13 + }
14 + }
15 +}
1 +{
2 + "event": "addHost",
3 + "payload": {
4 + "id": "0E:2A:69:30:13:88/-1",
5 + "ingress": "0E:2A:69:30:13:88/-1/0-of:0000ffffffff0003/1",
6 + "egress": "of:0000ffffffff0003/1-0E:2A:69:30:13:88/-1/0",
7 + "cp": {
8 + "device": "of:0000ffffffff0003",
9 + "port": 1
10 + },
11 + "labels": [
12 + "Host-A",
13 + "0E:2A:69:30:13:88"
14 + ],
15 + "props": {}
16 + }
17 +}
1 +{
2 + "event": "addHost",
3 + "payload": {
4 + "id": "0E:2A:69:30:13:89/-1",
5 + "ingress": "0E:2A:69:30:13:89/-1/0-of:0000ffffffff0007/1",
6 + "egress": "of:0000ffffffff0007/1-0E:2A:69:30:13:89/-1/0",
7 + "cp": {
8 + "device": "of:0000ffffffff0007",
9 + "port": 1
10 + },
11 + "labels": [
12 + "Host-B",
13 + "0E:2A:69:30:13:89"
14 + ],
15 + "props": {}
16 + }
17 +}
1 +{
2 + "event": "addHost",
3 + "payload": {
4 + "id": "0E:2A:69:30:13:8A/-1",
5 + "ingress": "0E:2A:69:30:13:8A/-1/0-of:0000ffffffff0008/1",
6 + "egress": "of:0000ffffffff0008/1-0E:2A:69:30:13:8A/-1/0",
7 + "cp": {
8 + "device": "of:0000ffffffff0008",
9 + "port": 1
10 + },
11 + "labels": [
12 + "Host-C",
13 + "0E:2A:69:30:13:8A"
14 + ],
15 + "props": {}
16 + }
17 +}
1 +{
2 + "event": "updateLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0007/10-of:0000ffffffff0008/20",
5 + "src": "of:0000ffffffff0007",
6 + "srcPort": "10",
7 + "dst": "of:0000ffffffff0008",
8 + "dstPort": "20",
9 +
10 + "type": "direct",
11 + "linkWidth": 2,
12 + "online": true,
13 + "props" : {
14 + "BW": "90 Gb"
15 + }
16 + }
17 +}
1 +{
2 + "event": "updateLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0007/20-of:0000ffffffff0003/10",
5 + "src": "of:0000ffffffff0007",
6 + "srcPort": "20",
7 + "dst": "of:0000ffffffff0003",
8 + "dstPort": "10",
9 +
10 + "type": "direct",
11 + "linkWidth": 6,
12 + "online": true,
13 + "props" : {
14 + "BW": "90 Gb"
15 + }
16 + }
17 +}
1 +{
2 + "event": "removeLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0007/20-of:0000ffffffff0003/10",
5 + "type": "direct",
6 + "linkWidth": 2,
7 + "src": "of:0000ffffffff0007",
8 + "srcPort": "20",
9 + "dst": "of:0000ffffffff0003",
10 + "dstPort": "10",
11 + "props" : {
12 + "BW": "90 Gb"
13 + }
14 + }
15 +}
1 +{
2 + "event": "removeLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0003/10-of:0000ffffffff0007/20",
5 + "type": "direct",
6 + "linkWidth": 2,
7 + "src": "of:0000ffffffff0003",
8 + "srcPort": "10",
9 + "dst": "of:0000ffffffff0007",
10 + "dstPort": "20",
11 + "props" : {
12 + "BW": "90 Gb"
13 + }
14 + }
15 +}
1 +{
2 + "event": "addInstance",
3 + "payload": {
4 + "id": "local",
5 + "online": true,
6 + "labels": [
7 + "local",
8 + "127.0.0.1"
9 + ]
10 + }
11 +}
1 +{
2 + "event": "addDevice",
3 + "payload": {
4 + "id": "of:0000ffffffff0003",
5 + "type": "switch",
6 + "online": true,
7 + "master": "local",
8 + "labels": [
9 + "0000ffffffff0003",
10 + "FF:FF:FF:FF:00:03",
11 + "sw-3"
12 + ],
13 + "metaUi": {
14 + "x": 282,
15 + "y": 503
16 + }
17 + }
18 +}
1 +{
2 + "event": "addDevice",
3 + "payload": {
4 + "id": "of:0000ffffffff0007",
5 + "type": "switch",
6 + "online": true,
7 + "master": "local",
8 + "labels": [
9 + "0000ffffffff0007",
10 + "FF:FF:FF:FF:00:07",
11 + "sw-7"
12 + ],
13 + "metaUi": {
14 + "x": 530,
15 + "y": 330
16 + }
17 + }
18 +}
1 +{
2 + "event": "addDevice",
3 + "payload": {
4 + "id": "of:0000ffffffff0008",
5 + "type": "switch",
6 + "online": true,
7 + "master": "local",
8 + "labels": [
9 + "0000ffffffff0008",
10 + "FF:FF:FF:FF:00:08",
11 + "sw-8"
12 + ],
13 + "metaUi": {
14 + "x": 734,
15 + "y": 477
16 + }
17 + }
18 +}
1 +{
2 + "event": "addLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0007/10-of:0000ffffffff0008/20",
5 + "type": "direct",
6 + "linkWidth": 2,
7 + "src": "of:0000ffffffff0007",
8 + "srcPort": "10",
9 + "dst": "of:0000ffffffff0008",
10 + "dstPort": "20",
11 + "props" : {
12 + "BW": "90 Gb"
13 + }
14 + }
15 +}
1 +{
2 + "event": "addLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0008/20-of:0000ffffffff0007/10",
5 + "type": "direct",
6 + "linkWidth": 2,
7 + "src": "of:0000ffffffff0008",
8 + "srcPort": "20",
9 + "dst": "of:0000ffffffff0007",
10 + "dstPort": "10",
11 + "props" : {
12 + "BW": "90 Gb"
13 + }
14 + }
15 +}
1 +{
2 + "event": "addLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0003/10-of:0000ffffffff0007/20",
5 + "type": "direct",
6 + "linkWidth": 2,
7 + "src": "of:0000ffffffff0003",
8 + "srcPort": "10",
9 + "dst": "of:0000ffffffff0007",
10 + "dstPort": "20",
11 + "props" : {
12 + "BW": "90 Gb"
13 + }
14 + }
15 +}
1 +{
2 + "event": "addLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0007/20-of:0000ffffffff0003/10",
5 + "type": "direct",
6 + "linkWidth": 2,
7 + "src": "of:0000ffffffff0007",
8 + "srcPort": "20",
9 + "dst": "of:0000ffffffff0003",
10 + "dstPort": "10",
11 + "props" : {
12 + "BW": "90 Gb"
13 + }
14 + }
15 +}
1 +{
2 + "event": "addLink",
3 + "payload": {
4 + "id": "of:0000ffffffff0003/20-of:0000ffffffff0008/10",
5 + "type": "direct",
6 + "linkWidth": 2,
7 + "src": "of:0000ffffffff0003",
8 + "srcPort": "20",
9 + "dst": "of:0000ffffffff0008",
10 + "dstPort": "10",
11 + "props" : {
12 + "BW": "90 Gb"
13 + }
14 + }
15 +}
1 +{
2 + "comments": [
3 + "Stepping through link events"
4 + ],
5 + "title": "Process Link Events Scenario",
6 + "params": {
7 + "lastAuto": 13
8 + },
9 + "description": [
10 + "Develop link event handling.",
11 + "",
12 + "Press 'S' to load initial events.",
13 + "",
14 + "Press spacebar to complete the scenario..."
15 + ]
16 +}
...@@ -262,6 +262,7 @@ ...@@ -262,6 +262,7 @@
262 } 262 }
263 #topo-oibox .onosInst.mastership.affinity { 263 #topo-oibox .onosInst.mastership.affinity {
264 opacity: 1.0; 264 opacity: 1.0;
265 + box-shadow: 0px 2px 8px #33e;
265 } 266 }
266 267
267 268
......
This diff is collapsed. Click to expand it.