Hi Marco,
On 2015年09月12日 00:02, Rojas, Marco Ney wrote:
> Hi Iwase, and thanks for your answer
>
> So, It was what I thought. But in case I would like to create flow tables,
> the only way to do it, is by using the OFPTableFeaturesStatsRequest class to
> send the request, and use the OFPTableFeaturesStats class to create the
> body. To Do all this process has to be done from scratch, or is there any
> function that take a json file to generate the body of the request? (because
> I saw some json files on the folder "ryu/test/unit/ofproto_13" with the
> structure of the OFPTableFeaturesStatsRequest object).
I think you don't have to create flow tables.
The flow tables will be initialized with the empty flow entry by the switch.
From controller side, you only need to add or modify flow entries by using
OFPFlowMod messages.
e.g.) Packet-In by ugsing pipeline
# install a flow into Table0
match = parser.OFPMatch()
inst = [parser.OFPInstructionGotoTable(1)] # go to the next table (Table1)
mod = parser.OFPFlowMod(datapath=datapath,table_id=0,
instructions=inst)
datapath.send_msg(mod)
# install a flow into Table1
match = parser.OFPMatch()
actions = [parser.OFPActionOutput(ofproto.OFPP_CONTROLLER, # Packet-In to
Controller
ofproto.OFPCML_NO_BUFFER)]
inst = [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS,
actions)]
mod = parser.OFPFlowMod(datapath=datapath, table_id=1,
instructions=inst)
datapath.send_msg(mod)
Thanks,
Iwase
>
> Regards
> Marco Rojas
>
> -----Original Message-----
> From: Yusuke Iwase [mailto:[email protected]]
> Sent: Thursday, September 10, 2015 6:46 PM
> To: Rojas, Marco Ney
> Cc: [email protected]
> Subject: Re: [Ryu-devel] Question about pipeline
>
> Hi Marco,
>
> On 2015年09月11日 08:21, Rojas, Marco Ney wrote:
>> Hi, I’m Marco and nice to meet you
>>
>>
>>
>> I’ve been using Ryu SDN framework to program an app that will be connected
>> to an OpenFlow switch (using OpenFlow version 1.3). But, I got some question
>> that I need to answer to go on, and I was hoping that you could help me.
>>
>>
>>
>> After see all the examples incorporated on the Ryu’s last version, I
>> realized that no one of them create or modify the pipeline. So I was asking
>> myself, if do I have to assume that the pipeline is already created before
>> execute any example? Because the gre_tunnel.py example declare an array
>> called FLOW_TABLE, which contains the table ids of the pipeline, but in no
>> place it’s use to create tables.
>>
>>
>>
>> I mean, do I have to configure the pipeline manually, or does Ryu configure
>> it automatically?
>
> Ryu does not get or maintain the flow table entries automatically.
> In case of the gre_tunnel.py example, FLOW_TABLES just stores the table_id of
> the flow table on the switches which are the targets to send FlowMod messages.
>
> Thanks,
> Iwase
>
>>
>>
>>
>> Thank you and regards
>>
>> Marco Rojas
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ----------------------------------------------------------------------
>> -------- Monitor Your Dynamic Infrastructure at Any Scale With
>> Datadog!
>> Get real-time metrics from all of your servers, apps and tools in one
>> place.
>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
> ------------------------------------------------------------------------------
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel