<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating a Java  FlowMod for 1.3 DataPath in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6607858#M1376</link>
    <description>i have a problem. copy your above code, sdn-apidoc.2.0.0 API web page tell us the function "sendFlowMod" should have return "MessageFuture" type! But my code return null!!!!!!! what's the problem? please help me quickly,thks!!!</description>
    <pubDate>Wed, 10 Sep 2014 03:33:21 GMT</pubDate>
    <dc:creator>Yuanxiance</dc:creator>
    <dc:date>2014-09-10T03:33:21Z</dc:date>
    <item>
      <title>Creating a Java  FlowMod for 1.3 DataPath</title>
      <link>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6420032#M1371</link>
      <description>&lt;P&gt;If I have an OF 1.0 action that looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Action action = ActionFactory.createAction( ProtocolVersion.V_1_0, ActionType.OUTPUT, Port.NORMAL&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to create&amp;nbsp;an Instruction for 1.3 but only get this far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instruction instruction = Instruction.createInstruction(ProtocolVersion.V_1_3, ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've&amp;nbsp;lost my way in JavaDocs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone provide and example of an OF 1.3 FlowMod or point me in the correct direction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 21:32:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6420032#M1371</guid>
      <dc:creator>RGBD</dc:creator>
      <dc:date>2014-03-20T21:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Java  FlowMod for 1.3 DataPath</title>
      <link>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6422684#M1372</link>
      <description>&lt;P&gt;Hello RGBD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following listing shows an example of how to create a flowmod message:&lt;/P&gt;&lt;P&gt;Flowmod Message Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public class SampleFlowModMessageCreation {&lt;/P&gt;&lt;P&gt;private static final ProtocolVersion PV = ProtocolVersion.V_1_3;&lt;/P&gt;&lt;P&gt;private static final long COOKIE = 0x00002468;&lt;/P&gt;&lt;P&gt;private static final TableId TABLE_ID = TableId.valueOf(200);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private static final int FLOW_IDLE_TIMEOUT = 300;&lt;/P&gt;&lt;P&gt;private static final int FLOW_HARD_TIMEOUT = 600;&lt;/P&gt;&lt;P&gt;private static final int FLOW_PRIORITY = 50;&lt;/P&gt;&lt;P&gt;private static final BufferId BUFFER_ID = BufferId.NO_BUFFER;&lt;/P&gt;&lt;P&gt;private static final Set&amp;lt;FlowModFlag&amp;gt; FLAGS = EnumSet.of(FlowModFlag.SEND_FLOW_REM, FlowModFlag.CHECK_OVERLAP, FlowModFlag.NO_BYTE_COUNTS);&lt;/P&gt;&lt;P&gt;private static final MacAddress MAC =MacAddress.valueOf("00001e:000000");&lt;/P&gt;&lt;P&gt;private static final MacAddress MAC_MASK =MacAddress.valueOf("ffffff:000000");&lt;/P&gt;&lt;P&gt;private static final PortNumber SMTP_PORT = PortNumber.valueOf(25);&lt;/P&gt;&lt;P&gt;private static final MacAddress MAC_DEST = MacAddress.BROADCAST;&lt;/P&gt;&lt;P&gt;private static final IpAddress IP_DEST = IpAddress.LOOPBACK_IPv4;&lt;/P&gt;&lt;P&gt;private OfmFlowMod sampleFlowModCreation() {&lt;/P&gt;&lt;P&gt;// Create a 1.3 FlowMod ADD message...&lt;/P&gt;&lt;P&gt;OfmMutableFlowMod fm = (OfmMutableFlowMod) MessageFactory.create(PV, MessageType.FLOW_MOD, FlowModCommand.ADD);&lt;/P&gt;&lt;P&gt;// NOTE: outPort = ANY and outGroup = ANY by default so we don’t have&lt;/P&gt;&lt;P&gt;// to explicitly set them.&lt;/P&gt;&lt;P&gt;fm.cookie(COOKIE).tableId(TABLE_ID).priority(FLOW_PRIORITY).idleTimeout(FLOW_IDLE_TIMEOUT).hardTimeout(FLOW_HARD_TIMEOUT).bufferId(BUFFER_ID).flowModFlags(FLAGS).match(createMatch());&lt;/P&gt;&lt;P&gt;for (Instruction ins: createInstructions())&lt;/P&gt;&lt;P&gt;fm.addInstruction(ins);&lt;/P&gt;&lt;P&gt;return (OfmFlowMod) fm.toImmutable();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;private Match&lt;/P&gt;&lt;P&gt;createMatch() {&lt;/P&gt;&lt;P&gt;// NOTE static imports of:&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;com.hp.of.lib.match.FieldFactory.createBasicField;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;com.hp.of.lib.match.OxmBasicFieldType.*;&lt;/P&gt;&lt;P&gt;MutableMatch mm = MatchFactory.createMatch(PV).addField(createBasicField(PV, ETH_SRC, MAC, MAC_MASK)).addField(createBasicField(PV, ETH_TYPE, EthernetType.IPv4)).addField(createBasicField(PV, IP_PROTO, IpProtocol.TCP)).addField(createBasicField(PV, TCP_DST, SMTP_PORT));&lt;/P&gt;&lt;P&gt;return (Match) mm.toImmutable();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;private static final long INS_META_MASK = 0xffff0000;&lt;/P&gt;&lt;P&gt;private static final long INS_META_DATA = 0x33ab0000;&lt;/P&gt;&lt;P&gt;private List&amp;lt;Instruction&amp;gt; createInstructions() {&lt;/P&gt;&lt;P&gt;// NOTE static imports of:&lt;/P&gt;&lt;P&gt;// com.hp.of.lib.instr.ActionFactory.createAction;&lt;/P&gt;&lt;P&gt;// com.hp.of.lib.instr.ActionFactory.createActionSetField;&lt;/P&gt;&lt;P&gt;// com.hp.of.lib.instr.InstructionFactory.createInstruction;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;com.hp.of.lib.instr.InstructionFactory.createMutableInstruction;&lt;/P&gt;&lt;P&gt;List&amp;lt;Instruction&amp;gt; result = new ArrayList&amp;lt;Instruction&amp;gt;();&lt;/P&gt;&lt;P&gt;result.add(createInstruction(PV, InstructionType.WRITE_METADATA,INS_META_DATA, INS_META_MASK));&lt;/P&gt;&lt;P&gt;InstrMutableAction apply = createMutableInstruction(PV,InstructionType.APPLY_ACTIONS);&lt;/P&gt;&lt;P&gt;apply.addAction(createAction(PV, ActionType.DEC_NW_TTL)).addAction(createActionSetField(PV, ETH_DST, MAC_DEST)).addAction(createActionSetField(PV, IPV4_DST, IP_DEST));&lt;/P&gt;&lt;P&gt;result.add((Instruction) apply.toImmutable());&lt;/P&gt;&lt;P&gt;return result;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example for &amp;nbsp;FlowMOD &amp;nbsp;message &amp;nbsp;in the SDN Programming guide. [page 27-29]&lt;/P&gt;&lt;P&gt;Please follow the example and let us know if you still face the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 10:00:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6422684#M1372</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-03-24T10:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Java  FlowMod for 1.3 DataPath</title>
      <link>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6437306#M1373</link>
      <description>&lt;P&gt;Hi RGBD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doing a follow up to see if previous post helps you.&lt;/P&gt;&lt;P&gt;Please let us know if your problem is solved or you still have some problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 11:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6437306#M1373</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-04-04T11:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Java  FlowMod for 1.3 DataPath</title>
      <link>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6499544#M1374</link>
      <description>&lt;P&gt;Hi everyone!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I send the FlowMod message?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried it with the ControllerService.sendFlowMod method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;A title="interface in com.hp.of.lib.msg" target="_blank" href="https://community.hpe.com/t5/forums/com/hp/of/lib/msg/MessageFuture.html"&gt;MessageFuture&lt;/A&gt;&amp;nbsp;sendFlowMod(&lt;A title="class in com.hp.of.lib.msg" target="_blank" href="https://community.hpe.com/t5/forums/com/hp/of/lib/msg/OfmFlowMod.html"&gt;OfmFlowMod&lt;/A&gt;&amp;nbsp;flowMod,
                        &lt;A title="class in com.hp.of.lib.dt" target="_blank" href="https://community.hpe.com/t5/forums/com/hp/of/lib/dt/DataPathId.html"&gt;DataPathId&lt;/A&gt;&amp;nbsp;dpid)
                          throws &lt;A title="class in com.hp.of.lib" target="_blank" href="https://community.hpe.com/t5/forums/com/hp/of/lib/OpenflowException.html"&gt;OpenflowException&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;but I always get the follogwing error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR of-io-29-thread-6 &amp;nbsp;hp.of.ctl &amp;nbsp;&amp;nbsp;Unable to perform I/O java.lang.NoSuchMethodError: com.hp.of.ctl.ControllerService.sendFlowMod(Lcom/hp/of/lib/msg/OfmFlowMod;Lcom/hp/of/lib/dt/DataPathId;)Lcom/hp/of/lib/msg/MessageFuture;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The necessary jars are referenced in the projects pom.xml and the ControllerService seems to be bound as I can add a PacketListener.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does anybody have an idea where the problem is?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2014 15:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6499544#M1374</guid>
      <dc:creator>Dast</dc:creator>
      <dc:date>2014-06-04T15:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Java  FlowMod for 1.3 DataPath</title>
      <link>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6506828#M1375</link>
      <description>&lt;P&gt;Hello Dast,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the steps to send the FlowMod message-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Construct OfmMutableFlowMod&amp;nbsp;&lt;/P&gt;&lt;P&gt;OfmMutableFlowMod mod = (OfmMutableFlowMod) MessageFactory .create(pv, MessageType.FLOW_MOD);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Assemble the match fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Add the values to flow mod&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Convert to Immutable&lt;/P&gt;&lt;P&gt;OfmFlowMod flow = (OfmFlowMod)mod.toImmutable();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;//Call the method&lt;/P&gt;&lt;P&gt;cs.sendFlowMod(flow, dpInfo.dpid());&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;// Here dpInfo is of type DataPathInfo and cs is of type ControllerService&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if this helps .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 18:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6506828#M1375</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-06-11T18:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Java  FlowMod for 1.3 DataPath</title>
      <link>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6607858#M1376</link>
      <description>i have a problem. copy your above code, sdn-apidoc.2.0.0 API web page tell us the function "sendFlowMod" should have return "MessageFuture" type! But my code return null!!!!!!! what's the problem? please help me quickly,thks!!!</description>
      <pubDate>Wed, 10 Sep 2014 03:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/creating-a-java-flowmod-for-1-3-datapath/m-p/6607858#M1376</guid>
      <dc:creator>Yuanxiance</dc:creator>
      <dc:date>2014-09-10T03:33:21Z</dc:date>
    </item>
  </channel>
</rss>

