import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.SwitchConfigFlag;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
-import org.opendaylight.yangtools.yang.common.Uint16;
/**
* Test for {@link DefaultConfigPusher}.
Mockito.verify(nodeConfigService).setConfig(setConfigInputCaptor.capture());
final SetConfigInput captured = setConfigInputCaptor.getValue();
Assert.assertEquals(SwitchConfigFlag.FRAGNORMAL.toString(), captured.getFlag());
- Assert.assertEquals(Uint16.valueOf(OFConstants.OFPCML_NO_BUFFER), captured.getMissSearchLength());
+ Assert.assertEquals(OFConstants.OFPCML_NO_BUFFER, captured.getMissSearchLength());
Assert.assertEquals(NODE_IID, captured.getNode().getValue());
}
public static final Uint32 OFP_NO_BUFFER = Uint32.valueOf(0xffffffffL).intern();
/** enum ofp_controller_max_len: indicates that no buffering should be applied and the whole packet is to be
* sent to the controller. */
- public static final Integer OFPCML_NO_BUFFER = 0xffff;
+ public static final Uint16 OFPCML_NO_BUFFER = Uint16.MAX_VALUE;
public static final int MAC_ADDRESS_LENGTH = 6;
public static final int SIZE_OF_LONG_IN_BYTES = 8;
new org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder();
OutputActionBuilder output = new OutputActionBuilder();
- output.setMaxLength(Uint16.valueOf(OFConstants.OFPCML_NO_BUFFER));
+ output.setMaxLength(OFConstants.OFPCML_NO_BUFFER);
Uri value = new Uri(OutputPortValues.CONTROLLER.toString());
output.setOutputNodeConnector(value);
ab.setAction(new OutputActionCaseBuilder().setOutputAction(