Committed by
Gerrit Code Review
GUI -- TopoView - Fixed problem of labels on hostlinks not being positioned correctly.
- updated traffic scenario. Change-Id: I452e0e81327a9006c20e00a843c6096432a1efac
Showing
12 changed files
with
65 additions
and
32 deletions
| ... | @@ -846,13 +846,6 @@ | ... | @@ -846,13 +846,6 @@ |
| 846 | }) | 846 | }) |
| 847 | .style('opacity', 0.0) | 847 | .style('opacity', 0.0) |
| 848 | .remove(); | 848 | .remove(); |
| 849 | - | ||
| 850 | - // NOTE: invoke a single tick to force the labels to position | ||
| 851 | - // onto their links. | ||
| 852 | - tick(); | ||
| 853 | - // TODO: this causes undesirable behavior when in oblique view | ||
| 854 | - // It causes the nodes to jump into "overhead" view positions, even | ||
| 855 | - // though the oblique planes are still showing... | ||
| 856 | } | 849 | } |
| 857 | 850 | ||
| 858 | // ========================== | 851 | // ========================== |
| ... | @@ -921,10 +914,10 @@ | ... | @@ -921,10 +914,10 @@ |
| 921 | rect, | 914 | rect, |
| 922 | text, | 915 | text, |
| 923 | parms = { | 916 | parms = { |
| 924 | - x1: d.ldata.x1, | 917 | + x1: d.ldata.source.x, |
| 925 | - y1: d.ldata.y1, | 918 | + y1: d.ldata.source.y, |
| 926 | - x2: d.ldata.x2, | 919 | + x2: d.ldata.target.x, |
| 927 | - y2: d.ldata.y2 | 920 | + y2: d.ldata.target.y |
| 928 | }; | 921 | }; |
| 929 | 922 | ||
| 930 | if (d.ldata.type() === 'hostLink') { | 923 | if (d.ldata.type() === 'hostLink') { | ... | ... |
| 1 | +{ | ||
| 2 | + "event": "addLink", | ||
| 3 | + "payload": { | ||
| 4 | + "id": "of:0000ffffffffff08/4-of:0000ffffffffff04/1", | ||
| 5 | + "type": "optical", | ||
| 6 | + "online": true, | ||
| 7 | + "linkWidth": 2, | ||
| 8 | + "src": "of:0000ffffffffff08", | ||
| 9 | + "srcPort": "4", | ||
| 10 | + "dst": "of:0000ffffffffff04", | ||
| 11 | + "dstPort": "1", | ||
| 12 | + "props" : { | ||
| 13 | + "BW": "90 Gb" | ||
| 14 | + } | ||
| 15 | + } | ||
| 16 | +} |
| ... | @@ -7,24 +7,26 @@ | ... | @@ -7,24 +7,26 @@ |
| 7 | "class": "primary", | 7 | "class": "primary", |
| 8 | "links": [ | 8 | "links": [ |
| 9 | "0E:2A:69:30:13:86/-1/0-of:0000ffffffff0003/101", | 9 | "0E:2A:69:30:13:86/-1/0-of:0000ffffffff0003/101", |
| 10 | - "0E:2A:69:30:13:aa/-1/0-of:0000ffffffff0008/101" | 10 | + "0E:2A:69:30:13:aa/-1/0-of:0000ffffffff0008/101", |
| 11 | + "of:0000ffffffff0003/4-of:0000ffffffffff03/1", | ||
| 12 | + "of:0000ffffffff0008/4-of:0000ffffffffff08/1" | ||
| 11 | ], | 13 | ], |
| 12 | "labels": [ | 14 | "labels": [ |
| 13 | "20 bytes", | 15 | "20 bytes", |
| 14 | - "20 bytes" | 16 | + "20 bytes", |
| 17 | + "24 bytes", | ||
| 18 | + "some bits" | ||
| 15 | ] | 19 | ] |
| 16 | }, | 20 | }, |
| 17 | { | 21 | { |
| 18 | "class": "primary optical", | 22 | "class": "primary optical", |
| 19 | "links": [ | 23 | "links": [ |
| 20 | - "of:0000ffffffff0003/4-of:0000ffffffffff03/1", | 24 | + "of:0000ffffffffff08/4-of:0000ffffffffff03/1", |
| 21 | - "of:0000ffffffff0008/4-of:0000ffffffffff08/1", | 25 | + "of:0000ffffffffff08/4-of:0000ffffffffff04/1" |
| 22 | - "of:0000ffffffffff08/4-of:0000ffffffffff03/1" | ||
| 23 | ], | 26 | ], |
| 24 | "labels": [ | 27 | "labels": [ |
| 25 | - "24 bytes", | 28 | + "foo bars", |
| 26 | - "some bits", | 29 | + "boo fars" |
| 27 | - "foo bars" | ||
| 28 | ] | 30 | ] |
| 29 | } | 31 | } |
| 30 | ] | 32 | ] | ... | ... |
| ... | @@ -7,24 +7,27 @@ | ... | @@ -7,24 +7,27 @@ |
| 7 | "class": "secondary", | 7 | "class": "secondary", |
| 8 | "links": [ | 8 | "links": [ |
| 9 | "0E:2A:69:30:13:86/-1/0-of:0000ffffffff0003/101", | 9 | "0E:2A:69:30:13:86/-1/0-of:0000ffffffff0003/101", |
| 10 | - "0E:2A:69:30:13:aa/-1/0-of:0000ffffffff0008/101" | 10 | + "0E:2A:69:30:13:aa/-1/0-of:0000ffffffff0008/101", |
| 11 | + "of:0000ffffffff0003/4-of:0000ffffffffff03/1", | ||
| 12 | + "of:0000ffffffff0008/4-of:0000ffffffffff08/1" | ||
| 11 | ], | 13 | ], |
| 12 | "labels": [ | 14 | "labels": [ |
| 13 | "35 bytes", | 15 | "35 bytes", |
| 14 | - "35 bytes" | 16 | + "35 bytes", |
| 17 | + "24 bytes", | ||
| 18 | + "some bits" | ||
| 15 | ] | 19 | ] |
| 16 | }, | 20 | }, |
| 17 | { | 21 | { |
| 18 | "class": "secondary optical", | 22 | "class": "secondary optical", |
| 19 | "links": [ | 23 | "links": [ |
| 20 | - "of:0000ffffffff0003/4-of:0000ffffffffff03/1", | 24 | + "of:0000ffffffffff08/4-of:0000ffffffffff03/1", |
| 21 | - "of:0000ffffffff0008/4-of:0000ffffffffff08/1", | 25 | + "of:0000ffffffffff08/4-of:0000ffffffffff04/1" |
| 22 | - "of:0000ffffffffff08/4-of:0000ffffffffff03/1" | 26 | + |
| 23 | ], | 27 | ], |
| 24 | "labels": [ | 28 | "labels": [ |
| 25 | - "24 bytes", | 29 | + "foo bars", |
| 26 | - "some bits", | 30 | + "bar foos" |
| 27 | - "foo bars" | ||
| 28 | ] | 31 | ] |
| 29 | } | 32 | } |
| 30 | ] | 33 | ] | ... | ... |
| ... | @@ -14,17 +14,18 @@ | ... | @@ -14,17 +14,18 @@ |
| 14 | "class": "secondary", | 14 | "class": "secondary", |
| 15 | "links": [ | 15 | "links": [ |
| 16 | "of:0000ffffffff0003/9-of:0000ffffffff0007/2", | 16 | "of:0000ffffffff0003/9-of:0000ffffffff0007/2", |
| 17 | - "of:0000ffffffff0008/4-of:0000ffffffff0007/1" | 17 | + "of:0000ffffffff0008/4-of:0000ffffffff0007/1", |
| 18 | + "of:0000ffffffff0003/4-of:0000ffffffffff03/1", | ||
| 19 | + "of:0000ffffffff0008/4-of:0000ffffffffff08/1" | ||
| 18 | ], | 20 | ], |
| 19 | - "labels": ["secondary", "secondo"] | 21 | + "labels": ["secondary", "secondo", "deux", "zwei"] |
| 20 | }, | 22 | }, |
| 21 | { | 23 | { |
| 22 | "class": "secondary optical", | 24 | "class": "secondary optical", |
| 23 | "links": [ | 25 | "links": [ |
| 24 | - "of:0000ffffffff0003/4-of:0000ffffffffff03/1", | 26 | + "of:0000ffffffffff08/4-of:0000ffffffffff04/1" |
| 25 | - "of:0000ffffffff0008/4-of:0000ffffffffff08/1" | ||
| 26 | ], | 27 | ], |
| 27 | - "labels": ["secondary optical", "secondo optical"] | 28 | + "labels": ["secondary optical"] |
| 28 | }, | 29 | }, |
| 29 | { | 30 | { |
| 30 | "class": "primary optical", | 31 | "class": "primary optical", | ... | ... |
-
Please register or login to post a comment