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
Showing
20 changed files
with
287 additions
and
0 deletions
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": "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 | +} |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment