Package org.openflow.protocol.action

Examples of org.openflow.protocol.action.MockVendorActionFactory


    }

    public void testCustomVendorAction() throws MessageParseException {
        BasicFactory factory = BasicFactory.getInstance();
        OFVendorActionRegistry.getInstance().register(
                MockVendorAction.VENDOR_ID, new MockVendorActionFactory());


        byte[] deadBeefMessage = {
            (byte) 0xff, (byte) 0xff,          // action vendor
            0x00, 0x10,                        // length
View Full Code Here


                0x05, 0x06, 0x07, 0x08               // pad
            };

        BasicFactory factory = BasicFactory.getInstance();
        OFVendorActionRegistry.getInstance().register(
                MockVendorAction.VENDOR_ID, new MockVendorActionFactory());

        ChannelBuffer buf = ChannelBuffers.copiedBuffer(nonDeadBeefMessage);

        List<OFAction> actions = factory.parseActions(buf,nonDeadBeefMessage.length);
        assertEquals(1, actions.size());
View Full Code Here

TOP

Related Classes of org.openflow.protocol.action.MockVendorActionFactory

Copyright © 2018 www.massapicom. 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.