Simon Hunt

Added ports to link data in sample json.

...@@ -59,54 +59,72 @@ ...@@ -59,54 +59,72 @@
59 "src": "of:0000000000000001", 59 "src": "of:0000000000000001",
60 "dst": "of:0000000000000002", 60 "dst": "of:0000000000000002",
61 "type": "optical", 61 "type": "optical",
62 + "srcPort": 1,
63 + "dstPort": 2,
62 "linkWidth": 1.5 64 "linkWidth": 1.5
63 }, 65 },
64 { 66 {
65 "src": "of:0000000000000001", 67 "src": "of:0000000000000001",
66 "dst": "of:0000000000000003", 68 "dst": "of:0000000000000003",
67 "type": "optical", 69 "type": "optical",
70 + "srcPort": 2,
71 + "dstPort": 5,
68 "linkWidth": 1.5 72 "linkWidth": 1.5
69 }, 73 },
70 { 74 {
71 "src": "of:0000000000000001", 75 "src": "of:0000000000000001",
72 "dst": "of:0000000000000004", 76 "dst": "of:0000000000000004",
73 "type": "optical", 77 "type": "optical",
78 + "srcPort": 3,
79 + "dstPort": 2,
74 "linkWidth": 1.5 80 "linkWidth": 1.5
75 }, 81 },
76 { 82 {
77 "src": "of:0000000000000002", 83 "src": "of:0000000000000002",
78 "dst": "of:0000000000000003", 84 "dst": "of:0000000000000003",
79 "type": "optical", 85 "type": "optical",
86 + "srcPort": 3,
87 + "dstPort": 4,
80 "linkWidth": 1.5 88 "linkWidth": 1.5
81 }, 89 },
82 { 90 {
83 "src": "of:0000000000000002", 91 "src": "of:0000000000000002",
84 "dst": "of:0000000000000004", 92 "dst": "of:0000000000000004",
85 "type": "optical", 93 "type": "optical",
94 + "srcPort": 4,
95 + "dstPort": 1,
86 "linkWidth": 1.5 96 "linkWidth": 1.5
87 }, 97 },
88 { 98 {
89 "src": "of:0000000000000003", 99 "src": "of:0000000000000003",
90 "dst": "of:0000000000000004", 100 "dst": "of:0000000000000004",
91 "type": "optical", 101 "type": "optical",
102 + "srcPort": 3,
103 + "dstPort": 3,
92 "linkWidth": 1.5 104 "linkWidth": 1.5
93 }, 105 },
94 { 106 {
95 "src": "of:0000000000000013", 107 "src": "of:0000000000000013",
96 "dst": "of:0000000000000003", 108 "dst": "of:0000000000000003",
97 "type": "direct", 109 "type": "direct",
110 + "srcPort": 1,
111 + "dstPort": 7,
98 "linkWidth": 1.0 112 "linkWidth": 1.0
99 }, 113 },
100 { 114 {
101 "src": "of:0000000000000012", 115 "src": "of:0000000000000012",
102 "dst": "of:0000000000000002", 116 "dst": "of:0000000000000002",
103 "type": "direct", 117 "type": "direct",
118 + "srcPort": 1,
119 + "dstPort": 9,
104 "linkWidth": 1.0 120 "linkWidth": 1.0
105 }, 121 },
106 { 122 {
107 "src": "of:0000000000000011", 123 "src": "of:0000000000000011",
108 "dst": "of:0000000000000001", 124 "dst": "of:0000000000000001",
109 "type": "direct", 125 "type": "direct",
126 + "srcPort": 1,
127 + "dstPort": 6,
110 "linkWidth": 1.0 128 "linkWidth": 1.0
111 } 129 }
112 ], 130 ],
......