Examples of IOFMessageProvider


Examples of org.flowforwarding.warp.protocol.ofmessages.IOFMessageProvider

   }
  
   @Override
   protected void packetIn(SwitchRef swRef, OFMessagePacketInRef packetIn) {
      super.packetIn(swRef, packetIn);
      IOFMessageProvider provider = swRef.getProvider();
     
      OFMessageFlowModRef flowMod = provider.buildFlowModMsg();
     
      if (packetIn.existMatchInPort()) {
         flowMod.addMatchInPort(packetIn.getMatchInPort().getMatch());
      } else if (packetIn.existMatchEthDst()) {
         flowMod.addMatchEthDst(packetIn.getMatchEthDst().getMatch());
      } else if (packetIn.existMatchEthSrc()) {
         flowMod.addMatchEthSrc(packetIn.getMatchEthSrc().getMatch());
      }
     
      OFStructureInstructionRef instruction = provider.buildInstructionApplyActions();
      instruction.addActionOutput("2");
      flowMod.addInstruction("apply_actions", instruction);

      sendFlowModMessage(swRef, flowMod);
   }
View Full Code Here

Examples of org.flowforwarding.warp.protocol.ofmessages.IOFMessageProvider

public class Launcher {

   public static void main(String[] args) {
      IOFMessageProviderFactory factory = new OFMessageProviderFactoryAvroProtocol();
      IOFMessageProvider provider = factory.getMessageProvider("1.3");
   }
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.