Marc De Leenheer
Committed by Gerrit Code Review

More fine tuning

Change-Id: I4629ac831a0c18a116bb188c9eeb1623c7413fe3
...@@ -212,10 +212,6 @@ public class LumentumFlowRuleDriver extends AbstractHandlerBehaviour implements ...@@ -212,10 +212,6 @@ public class LumentumFlowRuleDriver extends AbstractHandlerBehaviour implements
212 OID ctrlAmpModuleTargetGainBooster = new OID(CTRL_AMP_MODULE_TARGET_GAIN_BOOSTER); 212 OID ctrlAmpModuleTargetGainBooster = new OID(CTRL_AMP_MODULE_TARGET_GAIN_BOOSTER);
213 pdu.add(new VariableBinding(ctrlAmpModuleTargetGainBooster, new Integer32(DEFAULT_TARGET_GAIN_BOOSTER))); 213 pdu.add(new VariableBinding(ctrlAmpModuleTargetGainBooster, new Integer32(DEFAULT_TARGET_GAIN_BOOSTER)));
214 214
215 - // Enable the channel
216 - OID ctrlChannelState = new OID(CTRL_CHANNEL_STATE + (xc.isAddRule() ? "1." : "2.") + channel);
217 - pdu.add(new VariableBinding(ctrlChannelState, new Integer32(IN_SERVICE)));
218 -
219 // Make cross connect 215 // Make cross connect
220 OID ctrlChannelAddDropPortIndex = new OID(CTRL_CHANNEL_ADD_DROP_PORT_INDEX + 216 OID ctrlChannelAddDropPortIndex = new OID(CTRL_CHANNEL_ADD_DROP_PORT_INDEX +
221 (xc.isAddRule() ? "1." : "2.") + channel); 217 (xc.isAddRule() ? "1." : "2.") + channel);
...@@ -238,6 +234,10 @@ public class LumentumFlowRuleDriver extends AbstractHandlerBehaviour implements ...@@ -238,6 +234,10 @@ public class LumentumFlowRuleDriver extends AbstractHandlerBehaviour implements
238 ctrlChannelAbsoluteAttenuation, new UnsignedInteger32(DEFAULT_CHANNEL_ABSOLUTE_ATTENUATION))); 234 ctrlChannelAbsoluteAttenuation, new UnsignedInteger32(DEFAULT_CHANNEL_ABSOLUTE_ATTENUATION)));
239 } 235 }
240 236
237 + // Final step is to enable the channel
238 + OID ctrlChannelState = new OID(CTRL_CHANNEL_STATE + (xc.isAddRule() ? "1." : "2.") + channel);
239 + pdu.add(new VariableBinding(ctrlChannelState, new Integer32(IN_SERVICE)));
240 +
241 try { 241 try {
242 ResponseEvent response = snmp.set(pdu); 242 ResponseEvent response = snmp.set(pdu);
243 243
......