Hi,

Thanks, that what I was looking for!

But I'm not sure to understand what you mean by "try to create your
app this app as a guide?"?

Best,
Clément

On 9 April 2015 at 05:13, Minoru TAKAHASHI <[email protected]> wrote:
> Hi,
>
> On 2015年04月08日 21:41, Clément Rault wrote:
>> Hi,
>>
>> I am wondering if there is a way to add/modify/delete a flow with a
>> python method without getting the datapath from an event (from a
>> packet in for ex).
>
> ofctl_rest app gets the datapath by using the Dpset.
> https://github.com/osrg/ryu/blob/master/ryu/app/ofctl_rest.py#L390
>
> Would you like to try to create your app this app as a guide?
> Please ask if there is any questions.
>
> thanks
>
>>
>> Actually what I would like to do is exactly what I'm doing below with
>> curl but directly in python:
>>
>> curl -X POST -d '{
>>     "dpid": 1,
>>     "cookie": 1,
>>     "cookie_mask": 1,
>>     "table_id": 0,
>>     "idle_timeout": 0,
>>     "hard_timeout": 0,
>>     "priority": 1111,
>>     "flags": 1,
>>     "match":{
>>         "nw_dst": "11.0.0.1",
>>         "eth_type": 2048,
>>     },
>>     "actions":[
>>         {
>>             “type”: “SET_DL_DST”,
>>             “dl_dst”: “00:00:00:00:00:01”
>>         },
>>         {
>>             "type": "OUTPUT",
>>             "port": 1
>>         }
>>     ]
>>  }' http://localhost:8080/stats/flowentry/add
>>
>> Unfortunately I couldn't figure out a way to force the controller to
>> push a flow entry to a particular switch.
>>
>> Best,
>> Clément
>>
>> ------------------------------------------------------------------------------
>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>> Develop your own process in accordance with the BPMN 2 standard
>> Learn Process modeling best practices with Bonita BPM through live exercises
>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to