Hi,

On 2015年04月13日 11:51, 水墨画 wrote:
> Hi,
>     Thank you for your reply!I run as you say,but the result is still 404 
> error.I consider whether the reason is about version.
> mininet:2.1.1(ryubook:2.0.0)
> ryu:3.11(ryubook:3.2)
> OpenFlow:2.1.1(ryubook:1.11.0)

It worked fine on older versions of ryu(v3.11) in my environment.
Could you show me the ryu-manager log and the source code of your 
simple_switch_rest_13.py?

thanks,

> 
> Thanks!
> ------------------ 原始邮件 ------------------
> *发件人:* "Minoru TAKAHASHI";<takahashi.mino...@gmail.com>;
> *发送时间:* 2015年4月13日(星期一) 上午10:16
> *收件人:* "水墨画"<406699...@qq.com>; 
> "ryu-devel@lists.sourceforge.net"<ryu-devel@lists.sourceforge.net>;
> *主题:* Re: 回复: [Ryu-devel] 回复: sdn
> 
> Hi,
> 
> Please don't drop the mailing list.
> 
> On 2015年04月10日 11:44, 水墨画 wrote:
>> hi,
>> I do like you said ,but still the 404 error
>> I do not know if ther any error in my operation
>>
>>
>> Thanks!
> 
> Hmm ,,,it looks to not seem wrong.
> 
> Are you running the same procedure as RYU-BOOK?
> Error does not occur in my environment.
> Just for your information, my operation is as follows.
> 
> 1.run mininet
> 
> $ sudo mn --topo single,3 --mac --switch ovsk --controller remote -x
> *** Creating network
> *** Adding controller
> Unable to contact the remote controller at 127.0.0.1:6633
> *** Adding hosts:
> h1 h2 h3
> *** Adding switches:
> s1
> *** Adding links:
> (h1, s1) (h2, s1) (h3, s1)
> *** Configuring hosts
> h1 h2 h3
> *** Running terms on :0
> *** Starting controller
> *** Starting 1 switches
> s1
> *** Starting CLI:
> mininet>
> 
> 2.Set version to of13
> 
> $ sudo ovs-vsctl set Bridge s1 protocols=OpenFlow13
> 
> 3.run Ryu-manager
> 
> $ ryu-manager --verbose ./simple_switch_rest_13.py
> loading app ./simple_switch_rest_13.py
> loading app ryu.controller.ofp_handler
> creating context wsgi
> instantiating app ryu.controller.ofp_handler of OFPHandler
> instantiating app ./simple_switch_rest_13.py of SimpleSwitchRest13
> BRICK SimpleSwitchRest13
>   CONSUMES EventOFPPacketIn
>   CONSUMES EventOFPSwitchFeatures
> BRICK ofp_event
>   PROVIDES EventOFPPacketIn TO {'SimpleSwitchRest13': set(['main'])}
>   PROVIDES EventOFPSwitchFeatures TO {'SimpleSwitchRest13': set(['config'])}
>   CONSUMES EventOFPSwitchFeatures
>   CONSUMES EventOFPPortDescStatsReply
>   CONSUMES EventOFPEchoRequest
>   CONSUMES EventOFPHello
>   CONSUMES EventOFPErrorMsg
> (5063) wsgi starting up on http://0.0.0.0:8080/
> connected socket:<eventlet.greenio.GreenSocket object at 0x7f961cf69390> 
> address:('127.0.0.1', 53440)
> hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7f961cf69990>
> move onto config mode
> EVENT ofp_event->SimpleSwitchRest13 EventOFPSwitchFeatures
> switch features ev version: 0x4 msg_type 0x6 xid 0xf840751c 
> OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=1,n_buffers=256,n_tables=254)
> move onto main mode
> 
> 4.Issue a ping from host 1 to host 2 on the mininet shell.
> mininet> h1 ping -c 1 h2
> PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
> 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=7.47 ms
> 
> --- 10.0.0.2 ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 7.473/7.473/7.473/0.000 ms
> 
> 5.Execute REST API that acquires the MAC table of the switching hub.
> $ curl -X GET http://127.0.0.1:8080/simpleswitch/mactable/0000000000000001
> {"00:00:00:00:00:02": 2, "00:00:00:00:00:01": 1}
> 
> thanks
> 
>>
>> ------------------ 原始邮件 ------------------
>> *发件人:* "Minoru TAKAHASHI";<takahashi.mino...@gmail.com>;
>> *发送时间:* 2015年4月10日(星期五) 上午9:19
>> *收件人:* "水墨画"<406699...@qq.com>; 
>> "ryu-devel@lists.sourceforge.net"<ryu-devel@lists.sourceforge.net>;
>> *主题:* Re: [Ryu-devel] 回复: sdn
>>
>> Hi,
>>
>> On 2015年04月09日 19:54, 水墨画 wrote:
>>>
>>> hi,
>>> I do it like this:
>>> But the result is still 404 error.
>>
>> {"00:00:00:00:00:02": 2, "00:00:00:00:00:01": 1} is not needed.
>> Please run the following command.
>>
>> $ curl -X GET http://127.0.0.1:8080/simpleswitch/mactable/0000000000000001
>>
>>>
>>> thanks
>>> ------------------ 原始邮件 ------------------
>>> *发件人:* "Minoru TAKAHASHI";<takahashi.mino...@gmail.com>;
>>> *发送时间:* 2015年4月9日(星期四) 上午10:05
>>> *收件人:* "水墨画"<406699...@qq.com>; 
>>> "ryu-devel"<ryu-devel@lists.sourceforge.net>;
>>> *主题:* Re: [Ryu-devel] sdn
>>>
>>> Hi,
>>>
>>> On 2015年04月08日 23:38, 水墨画 wrote:
>>>>
>>>> Hi,
>>>> I run the simple_switch_rest_13.py in the ryu sdn book,but the error turn 
>>>> out below, and I do not know what is wrong.
>>>> would you help me with this?
>>>> Thank you very much!
>>>> Looking Forward to your reply!
>>>
>>> Please specify DatapathID with 16 digits hexadecimal without “0x” prefix 
>>> (e.g. 0000000000000001).
>>>
>>> thanks
>>>
>>>>
>>>>
>>>>
>>>> quting
>>>> NUDT
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> 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
>>>> Ryu-devel@lists.sourceforge.net
>>>> 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
>>> Ryu-devel@lists.sourceforge.net
>>> 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
> Ryu-devel@lists.sourceforge.net
> 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
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to