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