Hi,

On 2015??04??14?? 15:39, ?????? wrote:
> Hi,
>      The code is in the attachment,it is the same as Ryu book.And I operate 
> as it said.

Cause of the error is incorrect of Ryu-BOOK.
Please correct the source as follows.

url = '/v1/simpleswitch/mactable/{dpid}' ->
url = '/simpleswitch/mactable/{dpid}'

This incorrect has been corrected in the latest Ryu-BOOK.
http://osrg.github.io/ryu-book/en/html/rest_api.html

thanks

> 
> Thanks!
> 
> ------------------ ???????? ------------------
> *??????:* "Minoru TAKAHASHI";<takahashi.mino...@gmail.com>;
> *????????:* 2015??4??14??(??????) ????1:32
> *??????:* "??????"<406699...@qq.com>; "Minoru 
> TAKAHASHI"<ryu-devel@lists.sourceforge.net>;
> *????:* Re: [Ryu-devel] ?????? ?????? ?????? sdn
> 
> 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