https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:Architecture:Extensibility
should provide you a starting point From: [email protected] [mailto:[email protected]] Sent: Friday, May 06, 2016 2:30 PM To: Shuva Jyoti Kar Subject: Re: [openflowplugin-dev] sending flows on to switch Hi Shuva, Thanks . Could you tell me what are serializer and deserializer and why do we use it . The experimenter support can be found under extention folder of openflow plugin project . serializer and desrializer are used in it .. If u could help me with a guide to understand it . Regards Ayushi Sent from my iPhone On 06-May-2016, at 08:14, Shuva Jyoti Kar <[email protected]<mailto:[email protected]>> wrote: openflowplugin/model/ has 3 sets of models flow-base with all the basic constructs of table/flow/group /meter/port etc flow-services with all the rpc definitions on the basic constructs flow-statistics with rpcs to retrieve statistics hope it helps thanks Shuva From: Ayushi Kumar [mailto:[email protected]] Sent: Thursday, May 05, 2016 6:59 PM To: Shuva Jyoti Kar Subject: Re: [openflowplugin-dev] sending flows on to switch Hi Shuva , can you please explain a very basic rather silly doubt but I guessI need to know ... The import statement that is wriiten below ...how is it generated ,where can I see . I know one thing where this number comes from,it the revision date mentioned in yang file 2013-08-19 ..so we get 130819 but what are tables and Table below ...where can can I see the yang from which below is generated ?? import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.Table; Please can you explain ...If I understand this I can understand the rest Regards Ayushi On Thu, May 5, 2016 at 6:13 PM, Ayushi Kumar <[email protected]<mailto:[email protected]>> wrote: Hi Shuva , Thanks for the reply but I think final writing is to do something with below mentioned function Future<RpcResult<AddFlowOutput>> You can find it in l2switch code https://github.com/opendaylight/l2switch/blob/master/arphandler/implementation/src/main/java/org/opendaylight/l2switch/arphandler/flow/InitialFlowWriter.java line number 266 onwards. I just dont know to use it.If you could help. I actually receive my flow in vendordata (with all match and action) on my controller through tcp connection from one application. Now I just need to write the flow .But my flow consists of experimenter messages.How do I write it . Regards Ayushi On Thu, May 5, 2016 at 3:15 PM, Shuva Jyoti Kar <[email protected]<mailto:[email protected]>> wrote: Hi Ayushi, It will add to the switch , but you will not find it in the datastore since this is a direct rpc invocation Thanks Shuva From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Ayushi Kumar Sent: Thursday, May 05, 2016 11:18 AM To: [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]> Subject: [openflowplugin-dev] sending flows on to switch Hi All, Please read the below mentioned details . Could you please tell me what does salFlowService.addFlow(builder.build()) do Does it add flows on to my switch ...or some other function needs to be wriiten to finally send flows on to switch . What I mean is like for packet out we use TransmitPacketInput input = new TransmitPacketInputBuilder() // .setPayload(payload) // .setNode(new NodeRef(egressNodePath)) // .setEgress(egress) // .setIngress(ingress) // .build(); and finally to send packet out on to switch we use the below function packetProcessingService.transmitPacket(input); (my packet reaches switchafter this function) so in case of sending flow AddFlowInputBuilder builder = new AddFlowInputBuilder(); builder.setNode(new NodeRef(nodeInstanceId)); builder.setVersion(x); builder.setType(y); builder.setLength(length); builder.setXid(0L); builder.setVendordata(vendorData); builder.setVendorid(1234L); Now I do salFlowService.addFlow(builder.build()); So does it send the flow or it just adds flow ..finally to see flow on to the switch what do I do ??? I hope my question is clear .If any doubt please do ask. I am done with packet in and packet out ,now I need to send flows. Regards Ayushi
_______________________________________________ openflowplugin-dev mailing list [email protected] https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
