weibit

optical intent

Change-Id: I8cef7ae7fff3c9423daad242630a69922b855e98
...@@ -109,7 +109,7 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn ...@@ -109,7 +109,7 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn
109 } 109 }
110 110
111 treatmentBuilder.setOutput(link.src().port()); 111 treatmentBuilder.setOutput(link.src().port());
112 - //treatmentBuilder.setLambda(la.toInt()); 112 + treatmentBuilder.setLambda((short) la.toInt());
113 113
114 FlowRule rule = new DefaultFlowRule(prev.deviceId(), 114 FlowRule rule = new DefaultFlowRule(prev.deviceId(),
115 selectorBuilder.build(), 115 selectorBuilder.build(),
...@@ -122,7 +122,7 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn ...@@ -122,7 +122,7 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn
122 122
123 prev = link.dst(); 123 prev = link.dst();
124 selectorBuilder.matchInport(link.dst().port()); 124 selectorBuilder.matchInport(link.dst().port());
125 - //selectorBuilder.setLambda(la.toInt()); 125 + selectorBuilder.matchLambda((short) la.toInt());
126 } 126 }
127 127
128 // build the last T port rule 128 // build the last T port rule
...@@ -213,7 +213,7 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn ...@@ -213,7 +213,7 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn
213 } 213 }
214 214
215 treatmentBuilder.setOutput(link.src().port()); 215 treatmentBuilder.setOutput(link.src().port());
216 - //treatmentBuilder.setLambda(la.toInt()); 216 + treatmentBuilder.setLambda((short) la.toInt());
217 217
218 FlowRule rule = new DefaultFlowRule(prev.deviceId(), 218 FlowRule rule = new DefaultFlowRule(prev.deviceId(),
219 selectorBuilder.build(), 219 selectorBuilder.build(),
...@@ -226,7 +226,7 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn ...@@ -226,7 +226,7 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn
226 226
227 prev = link.dst(); 227 prev = link.dst();
228 selectorBuilder.matchInport(link.dst().port()); 228 selectorBuilder.matchInport(link.dst().port());
229 - //selectorBuilder.setLambda(la.toInt()); 229 + selectorBuilder.matchLambda((short) la.toInt());
230 } 230 }
231 231
232 // build the last T port rule 232 // build the last T port rule
......