Examples of OFSetConfig


Examples of org.openflow.protocol.OFSetConfig

    private void sendHandshakeSetConfig() throws IOException {
        List<OFMessage> msglist = new ArrayList<OFMessage>(3);

        // Ensure we receive the full packet via PacketIn
        // FIXME: We don't set the reassembly flags.
        OFSetConfig configSet = (OFSetConfig) BasicFactory.getInstance()
                .getMessage(OFType.SET_CONFIG);
        configSet.setMissSendLength((short) 0xffff)
            .setLengthU(OFSwitchConfig.MINIMUM_LENGTH);
        configSet.setXid(handshakeTransactionIds--);
        msglist.add(configSet);

        // Barrier
        OFBarrierRequest barrier = (OFBarrierRequest) BasicFactory.getInstance()
                .getMessage(OFType.BARRIER_REQUEST);
View Full Code Here

Examples of org.openflow.protocol.OFSetConfig

        sendMessageToHandlerWithControllerReset(Collections.<OFMessage>singletonList(featuresReply));

        List<OFMessage> msgs = getMessagesFromCapture();
        assertEquals(3, msgs.size());
        assertEquals(OFType.SET_CONFIG, msgs.get(0).getType());
        OFSetConfig sc = (OFSetConfig)msgs.get(0);
        assertEquals((short)0xffff, sc.getMissSendLength());
        assertEquals(OFType.BARRIER_REQUEST, msgs.get(1).getType());
        assertEquals(OFType.GET_CONFIG_REQUEST, msgs.get(2).getType());
        verifyUniqueXids(msgs);
        assertEquals(OFChannelHandler.ChannelState.WAIT_CONFIG_REPLY,
                     handler.getStateForTesting());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.