Fixed GUI labels for nodes and fixed a few GPS coordinates.
Change-Id: I3fd03e8551febaead4f81dc6d0e80a689cf6ee14
Showing
5 changed files
with
112 additions
and
106 deletions
1 | { | 1 | { |
2 | "devices": [ | 2 | "devices": [ |
3 | - { "name": "CMBR", "alias": "s1", "uri": "of:0000000000000001", "mac": "000000000001", "annotations": { "latitude": 42.373730, "longitude": -71.109734 }, "type": "SWITCH" }, | 3 | + { "alias": "s1", "uri": "of:0000000000000001", "mac": "000000000001", "annotations": { "name": "CMBR", "latitude": 42.373730, "longitude": -71.109734 }, "type": "SWITCH" }, |
4 | - { "name": "CHCG", "alias": "s2", "uri": "of:0000000000000002", "mac": "000000000002", "annotations": { "latitude": 41.877461, "longitude": -87.642892 }, "type": "SWITCH" }, | 4 | + { "alias": "s2", "uri": "of:0000000000000002", "mac": "000000000002", "annotations": { "name": "CHCG", "latitude": 41.877461, "longitude": -87.642892 }, "type": "SWITCH" }, |
5 | - { "name": "CLEV", "alias": "s3", "uri": "of:0000000000000003", "mac": "000000000003", "annotations": { "latitude": 41.498928, "longitude": -81.695217 }, "type": "SWITCH" }, | 5 | + { "alias": "s3", "uri": "of:0000000000000003", "mac": "000000000003", "annotations": { "name": "CLEV", "latitude": 41.498928, "longitude": -81.695217 }, "type": "SWITCH" }, |
6 | - { "name": "RLGH", "alias": "s4", "uri": "of:0000000000000004", "mac": "000000000004", "annotations": { "latitude": 35.780150, "longitude": -78.644026 }, "type": "SWITCH" }, | 6 | + { "alias": "s4", "uri": "of:0000000000000004", "mac": "000000000004", "annotations": { "name": "RLGH", "latitude": 35.780150, "longitude": -78.644026 }, "type": "SWITCH" }, |
7 | - { "name": "ATLN", "alias": "s5", "uri": "of:0000000000000005", "mac": "000000000005", "annotations": { "latitude": 33.749017, "longitude": -84.394168 }, "type": "SWITCH" }, | 7 | + { "alias": "s5", "uri": "of:0000000000000005", "mac": "000000000005", "annotations": { "name": "ATLN", "latitude": 33.749017, "longitude": -84.394168 }, "type": "SWITCH" }, |
8 | - { "name": "PHLA", "alias": "s6", "uri": "of:0000000000000006", "mac": "000000000006", "annotations": { "latitude": 39.952906, "longitude": -75.172278 }, "type": "SWITCH" }, | 8 | + { "alias": "s6", "uri": "of:0000000000000006", "mac": "000000000006", "annotations": { "name": "PHLA", "latitude": 39.952906, "longitude": -75.172278 }, "type": "SWITCH" }, |
9 | - { "name": "WASH", "alias": "s7", "uri": "of:0000000000000007", "mac": "000000000007", "annotations": { "latitude": 38.906696, "longitude": -77.035509 }, "type": "SWITCH" }, | 9 | + { "alias": "s7", "uri": "of:0000000000000007", "mac": "000000000007", "annotations": { "name": "WASH", "latitude": 38.906696, "longitude": -77.035509 }, "type": "SWITCH" }, |
10 | - { "name": "NSVL", "alias": "s8", "uri": "of:0000000000000008", "mac": "000000000008", "annotations": { "latitude": 36.166410, "longitude": -86.787305 }, "type": "SWITCH" }, | 10 | + { "alias": "s8", "uri": "of:0000000000000008", "mac": "000000000008", "annotations": { "name": "NSVL", "latitude": 36.166410, "longitude": -86.787305 }, "type": "SWITCH" }, |
11 | - { "name": "STLS", "alias": "s9", "uri": "of:0000000000000009", "mac": "000000000009", "annotations": { "latitude": 38.626418, "longitude": -90.198143 }, "type": "SWITCH" }, | 11 | + { "alias": "s9", "uri": "of:0000000000000009", "mac": "000000000009", "annotations": { "name": "STLS", "latitude": 38.626418, "longitude": -90.198143 }, "type": "SWITCH" }, |
12 | - { "name": "NWOR", "alias": "s10", "uri": "of:000000000000000a", "mac": "00000000000a", "annotations": { "Xlatitude": 0.0, "Xlongitude": 0.00 }, "type": "SWITCH" }, | 12 | + { "alias": "s10", "uri": "of:000000000000000a", "mac": "00000000000a", "annotations": { "name": "NWOR", "Xlatitude": 0.0, "Xlongitude": 0.00 }, "type": "SWITCH" }, |
13 | - { "name": "HSTN", "alias": "s11", "uri": "of:000000000000000b", "mac": "00000000000b", "annotations": { "latitude": 29.763249, "longitude": -95.368332 }, "type": "SWITCH" }, | 13 | + { "alias": "s11", "uri": "of:000000000000000b", "mac": "00000000000b", "annotations": { "name": "HSTN", "latitude": 29.763249, "longitude": -95.368332 }, "type": "SWITCH" }, |
14 | - { "name": "SNAN", "alias": "s12", "uri": "of:000000000000000c", "mac": "00000000000c", "annotations": { "latitude": 29.424331, "longitude": -98.491745 }, "type": "SWITCH" }, | 14 | + { "alias": "s12", "uri": "of:000000000000000c", "mac": "00000000000c", "annotations": { "name": "SNAN", "latitude": 29.424331, "longitude": -98.491745 }, "type": "SWITCH" }, |
15 | - { "name": "DLLS", "alias": "s13", "uri": "of:000000000000000d", "mac": "00000000000d", "annotations": { "latitude": 32.777665, "longitude": -96.802064 }, "type": "SWITCH" }, | 15 | + { "alias": "s13", "uri": "of:000000000000000d", "mac": "00000000000d", "annotations": { "name": "DLLS", "latitude": 32.777665, "longitude": -96.802064 }, "type": "SWITCH" }, |
16 | - { "name": "ORLD", "alias": "s14", "uri": "of:000000000000000e", "mac": "00000000000e", "annotations": { "latitude": 28.538641, "longitude": -81.381110 }, "type": "SWITCH" }, | 16 | + { "alias": "s14", "uri": "of:000000000000000e", "mac": "00000000000e", "annotations": { "name": "ORLD", "latitude": 28.538641, "longitude": -81.381110 }, "type": "SWITCH" }, |
17 | - { "name": "DNVR", "alias": "s15", "uri": "of:000000000000000f", "mac": "00000000000f", "annotations": { "latitude": 39.736623, "longitude": -104.984887 }, "type": "SWITCH" }, | 17 | + { "alias": "s15", "uri": "of:000000000000000f", "mac": "00000000000f", "annotations": { "name": "DNVR", "latitude": 39.736623, "longitude": -104.984887 }, "type": "SWITCH" }, |
18 | - { "name": "KSCY", "alias": "s16", "uri": "of:0000000000000010", "mac": "000000000010", "annotations": { "latitude": 39.100725, "longitude": -94.581228 }, "type": "SWITCH" }, | 18 | + { "alias": "s16", "uri": "of:0000000000000010", "mac": "000000000010", "annotations": { "name": "KSCY", "latitude": 39.100725, "longitude": -94.581228 }, "type": "SWITCH" }, |
19 | - { "name": "SNFN", "alias": "s17", "uri": "of:0000000000000011", "mac": "000000000011", "annotations": { "latitude": 37.779751, "longitude": -122.409791 }, "type": "SWITCH" }, | 19 | + { "alias": "s17", "uri": "of:0000000000000011", "mac": "000000000011", "annotations": { "name": "SNFN", "latitude": 37.779751, "longitude": -122.409791 }, "type": "SWITCH" }, |
20 | - { "name": "SCRM", "alias": "s18", "uri": "of:0000000000000012", "mac": "000000000012", "annotations": { "latitude": 38.581001, "longitude": -121.497844 }, "type": "SWITCH" }, | 20 | + { "alias": "s18", "uri": "of:0000000000000012", "mac": "000000000012", "annotations": { "name": "SCRM", "latitude": 38.581001, "longitude": -121.497844 }, "type": "SWITCH" }, |
21 | - { "name": "PTLD", "alias": "s19", "uri": "of:0000000000000013", "mac": "000000000013", "annotations": { "latitude": 45.523317, "longitude": -122.677768 }, "type": "SWITCH" }, | 21 | + { "alias": "s19", "uri": "of:0000000000000013", "mac": "000000000013", "annotations": { "name": "PTLD", "latitude": 45.523317, "longitude": -122.677768 }, "type": "SWITCH" }, |
22 | - { "name": "STTL", "alias": "s20", "uri": "of:0000000000000014", "mac": "000000000014", "annotations": { "latitude": 47.607326, "longitude": -122.331786 }, "type": "SWITCH" }, | 22 | + { "alias": "s20", "uri": "of:0000000000000014", "mac": "000000000014", "annotations": { "name": "STTL", "latitude": 47.607326, "longitude": -122.331786 }, "type": "SWITCH" }, |
23 | - { "name": "SLKC", "alias": "s21", "uri": "of:0000000000000015", "mac": "000000000015", "annotations": { "latitude": 40.759577, "longitude": -111.895079 }, "type": "SWITCH" }, | 23 | + { "alias": "s21", "uri": "of:0000000000000015", "mac": "000000000015", "annotations": { "name": "SLKC", "latitude": 40.759577, "longitude": -111.895079 }, "type": "SWITCH" }, |
24 | - { "name": "LA03", "alias": "s22", "uri": "of:0000000000000016", "mac": "000000000016", "annotations": { "latitude": 34.056346, "longitude": -118.235951 }, "type": "SWITCH" }, | 24 | + { "alias": "s22", "uri": "of:0000000000000016", "mac": "000000000016", "annotations": { "name": "LA03", "latitude": 34.056346, "longitude": -118.235951 }, "type": "SWITCH" }, |
25 | - { "name": "SNDG", "alias": "s23", "uri": "of:0000000000000017", "mac": "000000000017", "annotations": { "latitude": 32.714564, "longitude": -117.153528 }, "type": "SWITCH" }, | 25 | + { "alias": "s23", "uri": "of:0000000000000017", "mac": "000000000017", "annotations": { "name": "SNDG", "latitude": 32.714564, "longitude": -117.153528 }, "type": "SWITCH" }, |
26 | - { "name": "PHNX", "alias": "s24", "uri": "of:0000000000000018", "mac": "000000000018", "annotations": { "latitude": 33.448289, "longitude": -112.076299 }, "type": "SWITCH" }, | 26 | + { "alias": "s24", "uri": "of:0000000000000018", "mac": "000000000018", "annotations": { "name": "PHNX", "latitude": 33.448289, "longitude": -112.076299 }, "type": "SWITCH" }, |
27 | - { "name": "NY54", "alias": "s25", "uri": "of:0000000000000019", "mac": "000000000019", "annotations": { "latitude": 40.728270, "longitude": -73.994483 }, "type": "SWITCH" } | 27 | + { "alias": "s25", "uri": "of:0000000000000019", "mac": "000000000019", "annotations": { "name": "NY54", "latitude": 40.728270, "longitude": -73.994483 }, "type": "SWITCH" } |
28 | ], | 28 | ], |
29 | 29 | ||
30 | "hosts": [ | 30 | "hosts": [ |
31 | - { "name": "CMBR", "alias": "h1", "mac": "00:00:00:00:00:01", "vlan": -1, "location": "of:0000000000000001/1", "ip": "10.0.0.1", "annotations": { "latitude": 44.373730, "longitude": -71.109734 } }, | 31 | + { "alias": "h1", "mac": "00:00:00:00:00:01", "vlan": -1, "location": "of:0000000000000001/1", "ip": "10.0.0.1", "annotations": { "name": "CMBR", "latitude": 44.373730, "longitude": -71.109734 } }, |
32 | - { "name": "CHCG", "alias": "h2", "mac": "00:00:00:00:00:02", "vlan": -1, "location": "of:0000000000000002/1", "ip": "10.0.0.2", "annotations": { "latitude": 43.877461, "longitude": -87.642892 } }, | 32 | + { "alias": "h2", "mac": "00:00:00:00:00:02", "vlan": -1, "location": "of:0000000000000002/1", "ip": "10.0.0.2", "annotations": { "name": "CHCG", "latitude": 43.877461, "longitude": -87.642892 } }, |
33 | - { "name": "CLEV", "alias": "h3", "mac": "00:00:00:00:00:03", "vlan": -1, "location": "of:0000000000000003/1", "ip": "10.0.0.3", "annotations": { "latitude": 43.498928, "longitude": -81.695217 } }, | 33 | + { "alias": "h3", "mac": "00:00:00:00:00:03", "vlan": -1, "location": "of:0000000000000003/1", "ip": "10.0.0.3", "annotations": { "name": "CLEV", "latitude": 43.498928, "longitude": -81.695217 } }, |
34 | - { "name": "RLGH", "alias": "h4", "mac": "00:00:00:00:00:04", "vlan": -1, "location": "of:0000000000000004/1", "ip": "10.0.0.4", "annotations": { "latitude": 37.780150, "longitude": -78.644026 } }, | 34 | + { "alias": "h4", "mac": "00:00:00:00:00:04", "vlan": -1, "location": "of:0000000000000004/1", "ip": "10.0.0.4", "annotations": { "name": "RLGH", "latitude": 37.780150, "longitude": -78.644026 } }, |
35 | - { "name": "ATLN", "alias": "h5", "mac": "00:00:00:00:00:05", "vlan": -1, "location": "of:0000000000000005/1", "ip": "10.0.0.5", "annotations": { "latitude": 35.749017, "longitude": -84.394168 } }, | 35 | + { "alias": "h5", "mac": "00:00:00:00:00:05", "vlan": -1, "location": "of:0000000000000005/1", "ip": "10.0.0.5", "annotations": { "name": "ATLN", "latitude": 35.749017, "longitude": -84.394168 } }, |
36 | - { "name": "PHLA", "alias": "h6", "mac": "00:00:00:00:00:06", "vlan": -1, "location": "of:0000000000000006/1", "ip": "10.0.0.6", "annotations": { "latitude": 41.952906, "longitude": -75.172278 } }, | 36 | + { "alias": "h6", "mac": "00:00:00:00:00:06", "vlan": -1, "location": "of:0000000000000006/1", "ip": "10.0.0.6", "annotations": { "name": "PHLA", "latitude": 41.952906, "longitude": -75.172278 } }, |
37 | - { "name": "WASH", "alias": "h7", "mac": "00:00:00:00:00:07", "vlan": -1, "location": "of:0000000000000007/1", "ip": "10.0.0.7", "annotations": { "latitude": 40.906696, "longitude": -77.035509 } }, | 37 | + { "alias": "h7", "mac": "00:00:00:00:00:07", "vlan": -1, "location": "of:0000000000000007/1", "ip": "10.0.0.7", "annotations": { "name": "WASH", "latitude": 40.906696, "longitude": -77.035509 } }, |
38 | - { "name": "NSVL", "alias": "h8", "mac": "00:00:00:00:00:08", "vlan": -1, "location": "of:0000000000000008/1", "ip": "10.0.0.8", "annotations": { "latitude": 38.166410, "longitude": -86.787305 } }, | 38 | + { "alias": "h8", "mac": "00:00:00:00:00:08", "vlan": -1, "location": "of:0000000000000008/1", "ip": "10.0.0.8", "annotations": { "name": "NSVL", "latitude": 38.166410, "longitude": -86.787305 } }, |
39 | - { "name": "STLS", "alias": "h9", "mac": "00:00:00:00:00:09", "vlan": -1, "location": "of:0000000000000009/1", "ip": "10.0.0.9", "annotations": { "latitude": 40.626418, "longitude": -90.198143 } }, | 39 | + { "alias": "h9", "mac": "00:00:00:00:00:09", "vlan": -1, "location": "of:0000000000000009/1", "ip": "10.0.0.9", "annotations": { "name": "STLS", "latitude": 40.626418, "longitude": -90.198143 } }, |
40 | - { "name": "NWOR", "alias": "h10", "mac": "00:00:00:00:00:0a", "vlan": -1, "location": "of:000000000000000a/1", "ip": "10.0.0.10", "annotations": { "Xlatitude": 0.0, "Xlongitude": 0.00 } }, | 40 | + { "alias": "h10", "mac": "00:00:00:00:00:0a", "vlan": -1, "location": "of:000000000000000a/1", "ip": "10.0.0.10", "annotations": { "name": "NWOR", "Xlatitude": 0.0, "Xlongitude": 0.00 } }, |
41 | - { "name": "HSTN", "alias": "h11", "mac": "00:00:00:00:00:0b", "vlan": -1, "location": "of:000000000000000b/1", "ip": "10.0.0.11", "annotations": { "latitude": 31.763249, "longitude": -95.368332 } }, | 41 | + { "alias": "h11", "mac": "00:00:00:00:00:0b", "vlan": -1, "location": "of:000000000000000b/1", "ip": "10.0.0.11", "annotations": { "name": "HSTN", "latitude": 31.763249, "longitude": -95.368332 } }, |
42 | - { "name": "SNAN", "alias": "h12", "mac": "00:00:00:00:00:0c", "vlan": -1, "location": "of:000000000000000c/1", "ip": "10.0.0.12", "annotations": { "latitude": 31.424331, "longitude": -98.491745 } }, | 42 | + { "alias": "h12", "mac": "00:00:00:00:00:0c", "vlan": -1, "location": "of:000000000000000c/1", "ip": "10.0.0.12", "annotations": { "name": "SNAN", "latitude": 31.424331, "longitude": -98.491745 } }, |
43 | - { "name": "DLLS", "alias": "h13", "mac": "00:00:00:00:00:0d", "vlan": -1, "location": "of:000000000000000d/1", "ip": "10.0.0.13", "annotations": { "latitude": 34.777665, "longitude": -96.802064 } }, | 43 | + { "alias": "h13", "mac": "00:00:00:00:00:0d", "vlan": -1, "location": "of:000000000000000d/1", "ip": "10.0.0.13", "annotations": { "name": "DLLS", "latitude": 34.777665, "longitude": -96.802064 } }, |
44 | - { "name": "ORLD", "alias": "h14", "mac": "00:00:00:00:00:0e", "vlan": -1, "location": "of:000000000000000e/1", "ip": "10.0.0.14", "annotations": { "latitude": 31.538641, "longitude": -81.381110 } }, | 44 | + { "alias": "h14", "mac": "00:00:00:00:00:0e", "vlan": -1, "location": "of:000000000000000e/1", "ip": "10.0.0.14", "annotations": { "name": "ORLD", "latitude": 31.538641, "longitude": -81.381110 } }, |
45 | - { "name": "DNVR", "alias": "h15", "mac": "00:00:00:00:00:0f", "vlan": -1, "location": "of:000000000000000f/1", "ip": "10.0.0.15", "annotations": { "latitude": 41.736623, "longitude": -104.984887 } }, | 45 | + { "alias": "h15", "mac": "00:00:00:00:00:0f", "vlan": -1, "location": "of:000000000000000f/1", "ip": "10.0.0.15", "annotations": { "name": "DNVR", "latitude": 41.736623, "longitude": -104.984887 } }, |
46 | - { "name": "KSCY", "alias": "h16", "mac": "00:00:00:00:00:10", "vlan": -1, "location": "of:0000000000000010/1", "ip": "10.0.0.16", "annotations": { "latitude": 41.100725, "longitude": -94.581228 } }, | 46 | + { "alias": "h16", "mac": "00:00:00:00:00:10", "vlan": -1, "location": "of:0000000000000010/1", "ip": "10.0.0.16", "annotations": { "name": "KSCY", "latitude": 41.100725, "longitude": -94.581228 } }, |
47 | - { "name": "SNFN", "alias": "h17", "mac": "00:00:00:00:00:11", "vlan": -1, "location": "of:0000000000000011/1", "ip": "10.0.0.17", "annotations": { "latitude": 39.779751, "longitude": -122.409791 } }, | 47 | + { "alias": "h17", "mac": "00:00:00:00:00:11", "vlan": -1, "location": "of:0000000000000011/1", "ip": "10.0.0.17", "annotations": { "name": "SNFN", "latitude": 39.779751, "longitude": -122.409791 } }, |
48 | - { "name": "SCRM", "alias": "h18", "mac": "00:00:00:00:00:12", "vlan": -1, "location": "of:0000000000000012/1", "ip": "10.0.0.18", "annotations": { "latitude": 40.581001, "longitude": -121.497844 } }, | 48 | + { "alias": "h18", "mac": "00:00:00:00:00:12", "vlan": -1, "location": "of:0000000000000012/1", "ip": "10.0.0.18", "annotations": { "name": "SCRM", "latitude": 40.581001, "longitude": -121.497844 } }, |
49 | - { "name": "PTLD", "alias": "h19", "mac": "00:00:00:00:00:13", "vlan": -1, "location": "of:0000000000000013/1", "ip": "10.0.0.19", "annotations": { "latitude": 47.523317, "longitude": -122.677768 } }, | 49 | + { "alias": "h19", "mac": "00:00:00:00:00:13", "vlan": -1, "location": "of:0000000000000013/1", "ip": "10.0.0.19", "annotations": { "name": "PTLD", "latitude": 47.523317, "longitude": -122.677768 } }, |
50 | - { "name": "STTL", "alias": "h20", "mac": "00:00:00:00:00:14", "vlan": -1, "location": "of:0000000000000014/1", "ip": "10.0.0.20", "annotations": { "latitude": 49.607326, "longitude": -122.331786 } }, | 50 | + { "alias": "h20", "mac": "00:00:00:00:00:14", "vlan": -1, "location": "of:0000000000000014/1", "ip": "10.0.0.20", "annotations": { "name": "STTL", "latitude": 49.607326, "longitude": -122.331786 } }, |
51 | - { "name": "SLKC", "alias": "h21", "mac": "00:00:00:00:00:15", "vlan": -1, "location": "of:0000000000000015/1", "ip": "10.0.0.21", "annotations": { "latitude": 42.759577, "longitude": -111.895079 } }, | 51 | + { "alias": "h21", "mac": "00:00:00:00:00:15", "vlan": -1, "location": "of:0000000000000015/1", "ip": "10.0.0.21", "annotations": { "name": "SLKC", "latitude": 42.759577, "longitude": -111.895079 } }, |
52 | - { "name": "LA03", "alias": "h22", "mac": "00:00:00:00:00:16", "vlan": -1, "location": "of:0000000000000016/1", "ip": "10.0.0.22", "annotations": { "latitude": 36.056346, "longitude": -118.235951 } }, | 52 | + { "alias": "h22", "mac": "00:00:00:00:00:16", "vlan": -1, "location": "of:0000000000000016/1", "ip": "10.0.0.22", "annotations": { "name": "LA03", "latitude": 36.056346, "longitude": -118.235951 } }, |
53 | - { "name": "SNDG", "alias": "h23", "mac": "00:00:00:00:00:17", "vlan": -1, "location": "of:0000000000000017/1", "ip": "10.0.0.23", "annotations": { "latitude": 34.714564, "longitude": -117.153528 } }, | 53 | + { "alias": "h23", "mac": "00:00:00:00:00:17", "vlan": -1, "location": "of:0000000000000017/1", "ip": "10.0.0.23", "annotations": { "name": "SNDG", "latitude": 34.714564, "longitude": -117.153528 } }, |
54 | - { "name": "PHNX", "alias": "h24", "mac": "00:00:00:00:00:18", "vlan": -1, "location": "of:0000000000000018/1", "ip": "10.0.0.24", "annotations": { "latitude": 35.448289, "longitude": -112.076299 } }, | 54 | + { "alias": "h24", "mac": "00:00:00:00:00:18", "vlan": -1, "location": "of:0000000000000018/1", "ip": "10.0.0.24", "annotations": { "name": "PHNX", "latitude": 35.448289, "longitude": -112.076299 } }, |
55 | - { "name": "NY54", "alias": "h25", "mac": "00:00:00:00:00:19", "vlan": -1, "location": "of:0000000000000019/1", "ip": "10.0.0.25", "annotations": { "latitude": 42.728270, "longitude": -73.994483 } } | 55 | + { "alias": "h25", "mac": "00:00:00:00:00:19", "vlan": -1, "location": "of:0000000000000019/1", "ip": "10.0.0.25", "annotations": { "name": "NY54", "latitude": 42.728270, "longitude": -73.994483 } } |
56 | ] | 56 | ] |
57 | 57 | ||
58 | } | 58 | } | ... | ... |
... | @@ -2,33 +2,33 @@ | ... | @@ -2,33 +2,33 @@ |
2 | "devices" : [ | 2 | "devices" : [ |
3 | { | 3 | { |
4 | "uri": "of:0000ffffffffff01", "mac": "ffffffffffff01", "type": "ROADM", | 4 | "uri": "of:0000ffffffffff01", "mac": "ffffffffffff01", "type": "ROADM", |
5 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "ROADM1", | 5 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
6 | - "annotations": { "latitude": 37.6, "longitude": -122.3, "optical.regens": 0 }, | 6 | + "annotations": { "name": "ROADM1", "latitude": 37.6, "longitude": -122.3, "optical.regens": 0 }, |
7 | "ports": [ { "port": 10, "speed": 100000, "type": "FIBER" }, { "port": 20, "speed": 0, "type": "FIBER" } ] | 7 | "ports": [ { "port": 10, "speed": 100000, "type": "FIBER" }, { "port": 20, "speed": 0, "type": "FIBER" } ] |
8 | }, | 8 | }, |
9 | { | 9 | { |
10 | "uri": "of:0000ffffffffff02", "mac": "ffffffffffff02", "type": "ROADM", | 10 | "uri": "of:0000ffffffffff02", "mac": "ffffffffffff02", "type": "ROADM", |
11 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "ROADM2", | 11 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
12 | - "annotations": { "latitude": 37.3, "longitude": -121.9, "optical.regens": 0 }, | 12 | + "annotations": { "name": "ROADM2", "latitude": 37.3, "longitude": -121.9, "optical.regens": 0 }, |
13 | "ports": [ { "port": 11, "speed": 100000, "type": "FIBER" }, { "port": 21, "speed": 0, "type": "FIBER" } ] | 13 | "ports": [ { "port": 11, "speed": 100000, "type": "FIBER" }, { "port": 21, "speed": 0, "type": "FIBER" } ] |
14 | }, | 14 | }, |
15 | { | 15 | { |
16 | "uri": "of:0000ffffffffff03", "mac": "ffffffffffff03", "type": "ROADM", | 16 | "uri": "of:0000ffffffffff03", "mac": "ffffffffffff03", "type": "ROADM", |
17 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "ROADM3", | 17 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
18 | - "annotations": { "latitude": 33.9, "longitude": -118.4, "optical.regens": 2 }, | 18 | + "annotations": { "name": "ROADM3", "latitude": 33.9, "longitude": -118.4, "optical.regens": 2 }, |
19 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, { "port": 31, "speed": 0, "type": "FIBER" } ] | 19 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, { "port": 31, "speed": 0, "type": "FIBER" } ] |
20 | }, | 20 | }, |
21 | 21 | ||
22 | { | 22 | { |
23 | "uri": "of:0000ffffffff0001", "mac": "ffffffffff0001", "type": "SWITCH", | 23 | "uri": "of:0000ffffffff0001", "mac": "ffffffffff0001", "type": "SWITCH", |
24 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "ROUTER1", | 24 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
25 | - "annotations": { "latitude": 37.6, "longitude": -122.3 }, | 25 | + "annotations": { "name": "ROUTER1", "latitude": 37.6, "longitude": -122.3 }, |
26 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 26 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
27 | }, | 27 | }, |
28 | { | 28 | { |
29 | "uri": "of:0000ffffffff0002", "mac": "ffffffffff0002", "type": "SWITCH", | 29 | "uri": "of:0000ffffffff0002", "mac": "ffffffffff0002", "type": "SWITCH", |
30 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "ROUTER2", | 30 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
31 | - "annotations": { "latitude": 37.3, "longitude": -121.9 }, | 31 | + "annotations": { "name": "ROUTER2", "latitude": 37.3, "longitude": -121.9 }, |
32 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 32 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
33 | } | 33 | } |
34 | ], | 34 | ], | ... | ... |
... | @@ -2,40 +2,40 @@ | ... | @@ -2,40 +2,40 @@ |
2 | "devices" : [ | 2 | "devices" : [ |
3 | { | 3 | { |
4 | "uri": "of:0000ffffffffff01", "mac": "ffffffffffff01", "type": "ROADM", | 4 | "uri": "of:0000ffffffffff01", "mac": "ffffffffffff01", "type": "ROADM", |
5 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "SFO-W10", | 5 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
6 | - "annotations": { "latitude": 37.6, "longitude": -122.3, "optical.regens": 0 }, | 6 | + "annotations": { "name": "SFO-W10", "latitude": 37.6, "longitude": -122.3, "optical.regens": 0 }, |
7 | "ports": [ { "port": 10, "speed": 100000, "type": "FIBER" }, | 7 | "ports": [ { "port": 10, "speed": 100000, "type": "FIBER" }, |
8 | { "port": 20, "speed": 0, "type": "FIBER" }, | 8 | { "port": 20, "speed": 0, "type": "FIBER" }, |
9 | { "port": 50, "speed":100000, "type": "FIBER" } ] | 9 | { "port": 50, "speed":100000, "type": "FIBER" } ] |
10 | }, | 10 | }, |
11 | { | 11 | { |
12 | "uri": "of:0000ffffffffff02", "mac": "ffffffffffff02", "type": "ROADM", | 12 | "uri": "of:0000ffffffffff02", "mac": "ffffffffffff02", "type": "ROADM", |
13 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "SJC-W10", | 13 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
14 | - "annotations": { "latitude": 37.3, "longitude": -121.9, "optical.regens": 0 }, | 14 | + "annotations": { "name": "SJC-W10", "latitude": 37.3, "longitude": -121.9, "optical.regens": 0 }, |
15 | "ports": [ { "port": 20, "speed": 100000, "type": "FIBER" }, | 15 | "ports": [ { "port": 20, "speed": 100000, "type": "FIBER" }, |
16 | { "port": 30, "speed": 0, "type": "FIBER" }, | 16 | { "port": 30, "speed": 0, "type": "FIBER" }, |
17 | { "port": 50, "speed": 0, "type": "FIBER" } ] | 17 | { "port": 50, "speed": 0, "type": "FIBER" } ] |
18 | }, | 18 | }, |
19 | { | 19 | { |
20 | "uri": "of:0000ffffffffff03", "mac": "ffffffffffff03", "type": "ROADM", | 20 | "uri": "of:0000ffffffffff03", "mac": "ffffffffffff03", "type": "ROADM", |
21 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "LAX-W10", | 21 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
22 | - "annotations": { "latitude": 33.9, "longitude": -118.4, "optical.regens": 0 }, | 22 | + "annotations": { "name": "LAX-W10", "latitude": 33.9, "longitude": -118.4, "optical.regens": 0 }, |
23 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, | 23 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, |
24 | { "port": 50, "speed": 0, "type": "FIBER" }, | 24 | { "port": 50, "speed": 0, "type": "FIBER" }, |
25 | { "port": 20, "speed": 0, "type": "FIBER" } ] | 25 | { "port": 20, "speed": 0, "type": "FIBER" } ] |
26 | }, | 26 | }, |
27 | { | 27 | { |
28 | "uri": "of:0000ffffffffff04", "mac": "ffffffffffff04", "type": "ROADM", | 28 | "uri": "of:0000ffffffffff04", "mac": "ffffffffffff04", "type": "ROADM", |
29 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "SDG-W10", | 29 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
30 | - "annotations": { "latitude": 32.8, "longitude": -117.1, "optical.regens": 3 }, | 30 | + "annotations": { "name": "SDG-W10", "latitude": 32.8, "longitude": -117.1, "optical.regens": 3 }, |
31 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, | 31 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, |
32 | { "port":50, "speed": 0, "type": "FIBER" }, | 32 | { "port":50, "speed": 0, "type": "FIBER" }, |
33 | { "port":20, "speed": 0, "type": "FIBER" }] | 33 | { "port":20, "speed": 0, "type": "FIBER" }] |
34 | }, | 34 | }, |
35 | { | 35 | { |
36 | "uri": "of:0000ffffffffff05", "mac": "ffffffffffff05", "type": "ROADM", | 36 | "uri": "of:0000ffffffffff05", "mac": "ffffffffffff05", "type": "ROADM", |
37 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "MSP-M10", | 37 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
38 | - "annotations": { "latitude": 44.8, "longitude": -93.1, "optical.regens": 3 }, | 38 | + "annotations": { "name": "MSP-M10", "latitude": 44.8, "longitude": -93.1, "optical.regens": 3 }, |
39 | "ports": [ { "port": 20, "speed": 0, "type": "FIBER" }, | 39 | "ports": [ { "port": 20, "speed": 0, "type": "FIBER" }, |
40 | { "port": 30, "speed": 0, "type": "FIBER" }, | 40 | { "port": 30, "speed": 0, "type": "FIBER" }, |
41 | { "port": 40, "speed": 0, "type": "FIBER" }, | 41 | { "port": 40, "speed": 0, "type": "FIBER" }, |
... | @@ -43,8 +43,8 @@ | ... | @@ -43,8 +43,8 @@ |
43 | }, | 43 | }, |
44 | { | 44 | { |
45 | "uri": "of:0000ffffffffff06", "mac": "ffffffffffff06", "type": "ROADM", | 45 | "uri": "of:0000ffffffffff06", "mac": "ffffffffffff06", "type": "ROADM", |
46 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "DFW-M10", | 46 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
47 | - "annotations": { "latitude": 32.8, "longitude": -97.1, "optical.regens": 3 }, | 47 | + "annotations": { "name": "DFW-M10", "latitude": 32.8, "longitude": -97.1, "optical.regens": 3 }, |
48 | "ports": [ { "port": 10, "speed": 0, "type": "FIBER" }, | 48 | "ports": [ { "port": 10, "speed": 0, "type": "FIBER" }, |
49 | { "port": 20, "speed": 0, "type": "FIBER" }, | 49 | { "port": 20, "speed": 0, "type": "FIBER" }, |
50 | { "port": 30, "speed": 0, "type": "FIBER" }, | 50 | { "port": 30, "speed": 0, "type": "FIBER" }, |
... | @@ -53,8 +53,8 @@ | ... | @@ -53,8 +53,8 @@ |
53 | }, | 53 | }, |
54 | { | 54 | { |
55 | "uri": "of:0000ffffffffff07", "mac": "ffffffffffff07", "type": "ROADM", | 55 | "uri": "of:0000ffffffffff07", "mac": "ffffffffffff07", "type": "ROADM", |
56 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "CHG-N10", | 56 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
57 | - "annotations": { "latitude": 41.8, "longitude": -120.1, "optical.regens": 3 }, | 57 | + "annotations": { "name": "CHG-N10", "latitude": 41.8, "longitude": -87.6, "optical.regens": 3 }, |
58 | "ports": [ { "port": 10, "speed": 0, "type": "FIBER" }, | 58 | "ports": [ { "port": 10, "speed": 0, "type": "FIBER" }, |
59 | { "port": 20, "speed": 0, "type": "FIBER" }, | 59 | { "port": 20, "speed": 0, "type": "FIBER" }, |
60 | { "port": 30, "speed": 0, "type": "FIBER" }, | 60 | { "port": 30, "speed": 0, "type": "FIBER" }, |
... | @@ -62,62 +62,62 @@ | ... | @@ -62,62 +62,62 @@ |
62 | }, | 62 | }, |
63 | { | 63 | { |
64 | "uri": "of:0000ffffffffff08", "mac": "ffffffffffff08", "type": "ROADM", | 64 | "uri": "of:0000ffffffffff08", "mac": "ffffffffffff08", "type": "ROADM", |
65 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "IAD-M10", | 65 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
66 | - "annotations": { "latitude": 38.8, "longitude": -77.1, "optical.regens": 3 }, | 66 | + "annotations": { "name": "IAD-M10", "latitude": 38.8, "longitude": -77.1, "optical.regens": 3 }, |
67 | "ports": [ { "port": 20, "speed": 0, "type": "FIBER" }, | 67 | "ports": [ { "port": 20, "speed": 0, "type": "FIBER" }, |
68 | { "port": 30, "speed": 0, "type": "FIBER" }, | 68 | { "port": 30, "speed": 0, "type": "FIBER" }, |
69 | { "port": 50, "speed": 0, "type": "FIBER" }] | 69 | { "port": 50, "speed": 0, "type": "FIBER" }] |
70 | }, | 70 | }, |
71 | { | 71 | { |
72 | "uri": "of:0000ffffffffff09", "mac": "ffffffffffff09", "type": "ROADM", | 72 | "uri": "of:0000ffffffffff09", "mac": "ffffffffffff09", "type": "ROADM", |
73 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "JFK-M10", | 73 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
74 | - "annotations": { "latitude": 40.8, "longitude": -73.1, "optical.regens": 0 }, | 74 | + "annotations": { "name": "JFK-M10", "latitude": 40.8, "longitude": -73.1, "optical.regens": 0 }, |
75 | "ports": [ { "port": 10, "speed": 0, "type": "FIBER" }, | 75 | "ports": [ { "port": 10, "speed": 0, "type": "FIBER" }, |
76 | { "port": 20, "speed": 0, "type": "FIBER" }, | 76 | { "port": 20, "speed": 0, "type": "FIBER" }, |
77 | { "port": 50, "speed": 0, "type": "FIBER" }] | 77 | { "port": 50, "speed": 0, "type": "FIBER" }] |
78 | }, | 78 | }, |
79 | { | 79 | { |
80 | "uri": "of:0000ffffffffff0A", "mac": "ffffffffffff0A", "type": "ROADM", | 80 | "uri": "of:0000ffffffffff0A", "mac": "ffffffffffff0A", "type": "ROADM", |
81 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "ATL-S10", | 81 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
82 | - "annotations": { "latitude": 33.8, "longitude": -84.1, "optical.regens": 0 }, | 82 | + "annotations": { "name": "ATL-S10", "latitude": 33.8, "longitude": -84.1, "optical.regens": 0 }, |
83 | "ports": [ { "port": 10, "speed": 0, "type": "FIBER" }, | 83 | "ports": [ { "port": 10, "speed": 0, "type": "FIBER" }, |
84 | { "port": 20, "speed": 0, "type": "FIBER" }, | 84 | { "port": 20, "speed": 0, "type": "FIBER" }, |
85 | { "port": 50, "speed": 0, "type": "FIBER" }] | 85 | { "port": 50, "speed": 0, "type": "FIBER" }] |
86 | }, | 86 | }, |
87 | { | 87 | { |
88 | "uri": "of:0000ffffffff0001", "mac": "ffffffffff0001", "type": "SWITCH", | 88 | "uri": "of:0000ffffffff0001", "mac": "ffffffffff0001", "type": "SWITCH", |
89 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "SFO-R10", | 89 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
90 | - "annotations": { "latitude": 37.6, "longitude": -122.3 }, | 90 | + "annotations": { "name": "SFO-R10", "latitude": 37.6, "longitude": -122.3 }, |
91 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 91 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
92 | }, | 92 | }, |
93 | { | 93 | { |
94 | "uri": "of:0000ffffffff0002", "mac": "ffffffffff0003", "type": "SWITCH", | 94 | "uri": "of:0000ffffffff0002", "mac": "ffffffffff0003", "type": "SWITCH", |
95 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "LAX-R10", | 95 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
96 | - "annotations": { "latitude": 33.9, "longitude": -118.4 }, | 96 | + "annotations": { "name": "LAX-R10", "latitude": 33.9, "longitude": -118.4 }, |
97 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 97 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
98 | }, | 98 | }, |
99 | { | 99 | { |
100 | "uri": "of:0000ffffffff0003", "mac": "ffffffffff0004", "type": "SWITCH", | 100 | "uri": "of:0000ffffffff0003", "mac": "ffffffffff0004", "type": "SWITCH", |
101 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "SDG-R10", | 101 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
102 | - "annotations": { "latitude": 32.8, "longitude": -117.1 }, | 102 | + "annotations": { "name": "SDG-R10", "latitude": 32.8, "longitude": -117.1 }, |
103 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 103 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
104 | }, | 104 | }, |
105 | { | 105 | { |
106 | "uri": "of:0000ffffffff0004", "mac": "ffffffffff0007", "type": "SWITCH", | 106 | "uri": "of:0000ffffffff0004", "mac": "ffffffffff0007", "type": "SWITCH", |
107 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "CHG-R10", | 107 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
108 | - "annotations": { "latitude": 41.8, "longitude": -120.1 }, | 108 | + "annotations": { "name": "CHG-R10", "latitude": 41.8, "longitude": -87.6 }, |
109 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 109 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
110 | }, | 110 | }, |
111 | { | 111 | { |
112 | "uri": "of:0000ffffffff0005", "mac": "ffffffffff0009", "type": "SWITCH", | 112 | "uri": "of:0000ffffffff0005", "mac": "ffffffffff0009", "type": "SWITCH", |
113 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "JFK-R10", | 113 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
114 | - "annotations": { "latitude": 40.8, "longitude": -73.1 }, | 114 | + "annotations": { "name": "JFK-R10", "latitude": 40.8, "longitude": -73.1 }, |
115 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 115 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
116 | }, | 116 | }, |
117 | { | 117 | { |
118 | "uri": "of:0000ffffffff0006", "mac": "ffffffffff000A", "type": "SWITCH", | 118 | "uri": "of:0000ffffffff0006", "mac": "ffffffffff000A", "type": "SWITCH", |
119 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "ATL-R10", | 119 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
120 | - "annotations": { "latitude": 33.8, "longitude": -84.1 }, | 120 | + "annotations": { "name": "ATL-R10", "latitude": 33.8, "longitude": -84.1 }, |
121 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 121 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
122 | } | 122 | } |
123 | 123 | ... | ... |
... | @@ -2,38 +2,38 @@ | ... | @@ -2,38 +2,38 @@ |
2 | "devices" : [ | 2 | "devices" : [ |
3 | { | 3 | { |
4 | "uri": "of:0000ffffffffff01", "mac": "ffffffffffff01", "type": "ROADM", | 4 | "uri": "of:0000ffffffffff01", "mac": "ffffffffffff01", "type": "ROADM", |
5 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "ROADM1", | 5 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
6 | - "annotations": { "latitude": 37.6, "longitude": -122.3, "optical.regens": 0 }, | 6 | + "annotations": { "name": "ROADM1", "latitude": 37.6, "longitude": -122.3, "optical.regens": 0 }, |
7 | "ports": [ { "port": 10, "speed": 100000, "type": "FIBER" }, { "port": 20, "speed": 0, "type": "FIBER" }, { "port": 22, "speed": 0, "type": "FIBER" } ] | 7 | "ports": [ { "port": 10, "speed": 100000, "type": "FIBER" }, { "port": 20, "speed": 0, "type": "FIBER" }, { "port": 22, "speed": 0, "type": "FIBER" } ] |
8 | }, | 8 | }, |
9 | { | 9 | { |
10 | "uri": "of:0000ffffffffff02", "mac": "ffffffffffff02", "type": "ROADM", | 10 | "uri": "of:0000ffffffffff02", "mac": "ffffffffffff02", "type": "ROADM", |
11 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "ROADM2", | 11 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
12 | - "annotations": { "latitude": 37.3, "longitude": -121.9, "optical.regens": 0 }, | 12 | + "annotations": { "name": "ROADM2", "latitude": 37.3, "longitude": -121.9, "optical.regens": 0 }, |
13 | "ports": [ { "port": 11, "speed": 100000, "type": "FIBER" }, { "port": 21, "speed": 0, "type": "FIBER" }, { "port": 22, "speed": 0, "type": "FIBER" } ] | 13 | "ports": [ { "port": 11, "speed": 100000, "type": "FIBER" }, { "port": 21, "speed": 0, "type": "FIBER" }, { "port": 22, "speed": 0, "type": "FIBER" } ] |
14 | }, | 14 | }, |
15 | { | 15 | { |
16 | "uri": "of:0000ffffffffff03", "mac": "ffffffffffff03", "type": "ROADM", | 16 | "uri": "of:0000ffffffffff03", "mac": "ffffffffffff03", "type": "ROADM", |
17 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "ROADM3", | 17 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
18 | - "annotations": { "latitude": 33.9, "longitude": -118.4, "optical.regens": 2 }, | 18 | + "annotations": { "name": "ROADM3", "latitude": 33.9, "longitude": -118.4, "optical.regens": 2 }, |
19 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, { "port": 31, "speed": 0, "type": "FIBER" } ] | 19 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, { "port": 31, "speed": 0, "type": "FIBER" } ] |
20 | }, | 20 | }, |
21 | { | 21 | { |
22 | "uri": "of:0000ffffffffff04", "mac": "ffffffffffff04", "type":"ROADM", | 22 | "uri": "of:0000ffffffffff04", "mac": "ffffffffffff04", "type":"ROADM", |
23 | - "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", "name": "ROADM4", | 23 | + "mfr": "Linc", "hw": "OE", "sw": "?", "serial": "?", |
24 | - "annotations": { "latitude": 39.9, "longitude": -119.4, "optical.regens": 2 }, | 24 | + "annotations": { "name": "ROADM4", "latitude": 39.9, "longitude": -119.4, "optical.regens": 2 }, |
25 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, { "port": 31, "speed": 0, "type": "FIBER" } ] | 25 | "ports": [ { "port": 30, "speed": 0, "type": "FIBER" }, { "port": 31, "speed": 0, "type": "FIBER" } ] |
26 | }, | 26 | }, |
27 | { | 27 | { |
28 | "uri": "of:0000ffffffff0001", "mac": "ffffffffff0001", "type": "SWITCH", | 28 | "uri": "of:0000ffffffff0001", "mac": "ffffffffff0001", "type": "SWITCH", |
29 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "ROUTER1", | 29 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
30 | - "annotations": { "latitude": 37.6, "longitude": -122.3 }, | 30 | + "annotations": { "name": "ROUTER1", "latitude": 37.6, "longitude": -122.3 }, |
31 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 31 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
32 | }, | 32 | }, |
33 | { | 33 | { |
34 | "uri": "of:0000ffffffff0002", "mac": "ffffffffff0002", "type": "SWITCH", | 34 | "uri": "of:0000ffffffff0002", "mac": "ffffffffff0002", "type": "SWITCH", |
35 | - "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", "name": "ROUTER2", | 35 | + "mfr": "Linc", "hw": "PK", "sw": "?", "serial": "?", |
36 | - "annotations": { "latitude": 37.3, "longitude": -121.9 }, | 36 | + "annotations": { "name": "ROUTER2", "latitude": 37.3, "longitude": -121.9 }, |
37 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] | 37 | "ports": [ { "port": 1, "speed": 10000, "type": "COPPER" }, { "port": 2, "speed": 100000, "type": "FIBER" } ] |
38 | } | 38 | } |
39 | ], | 39 | ], | ... | ... |
... | @@ -143,8 +143,10 @@ public abstract class TopologyViewMessages { | ... | @@ -143,8 +143,10 @@ public abstract class TopologyViewMessages { |
143 | // Produces JSON structure from annotations. | 143 | // Produces JSON structure from annotations. |
144 | private JsonNode props(Annotations annotations) { | 144 | private JsonNode props(Annotations annotations) { |
145 | ObjectNode props = mapper.createObjectNode(); | 145 | ObjectNode props = mapper.createObjectNode(); |
146 | - for (String key : annotations.keys()) { | 146 | + if (annotations != null) { |
147 | - props.put(key, annotations.value(key)); | 147 | + for (String key : annotations.keys()) { |
148 | + props.put(key, annotations.value(key)); | ||
149 | + } | ||
148 | } | 150 | } |
149 | return props; | 151 | return props; |
150 | } | 152 | } |
... | @@ -306,6 +308,10 @@ public abstract class TopologyViewMessages { | ... | @@ -306,6 +308,10 @@ public abstract class TopologyViewMessages { |
306 | // Adds a geo location JSON to the specified payload object. | 308 | // Adds a geo location JSON to the specified payload object. |
307 | private void addGeoLocation(Annotated annotated, ObjectNode payload) { | 309 | private void addGeoLocation(Annotated annotated, ObjectNode payload) { |
308 | Annotations annotations = annotated.annotations(); | 310 | Annotations annotations = annotated.annotations(); |
311 | + if (annotations == null) { | ||
312 | + return; | ||
313 | + } | ||
314 | + | ||
309 | String slat = annotations.value("latitude"); | 315 | String slat = annotations.value("latitude"); |
310 | String slng = annotations.value("longitude"); | 316 | String slng = annotations.value("longitude"); |
311 | try { | 317 | try { | ... | ... |
-
Please register or login to post a comment