Hi, Sorry, I forgot to put Ryu mailing list in the destination address.
On 2015年06月26日 00:10, Liu, Weijie wrote: > Cool! Let's do that! =) > > thanks so much OK. I will send this patch to Ryu mailing list. Please wait a little. thanks > > -- > Weijie Liu > Department of Computer Science > University of Illinois at Urbana-Champaign > (217)819-6113 > > ________________________________________ > From: Minoru TAKAHASHI [[email protected]] > Sent: Thursday, June 25, 2015 2:23 > To: Liu, Weijie > Subject: Re: [Ryu-devel] Fail to query Queue with ofctl_rest > > Hi, > > On 2015年06月24日 00:32, Liu, Weijie wrote: >> Hi, Minoru, >> >> Thanks for your help. I upgraded the Ryu and it works! >> >> Another question is about the output of ENQUEUE action. It seems there is no >> port information in the output string of ENQUEUE in ofctl_v1_0.py >> >> ...... in "actions_to_str(acts):" of "ofctl_v1_0.py" >> >> elif action_type == ofproto_v1_0.OFPAT_SET_TP_DST: >> buf = 'SET_TP_DST:' + str(a.tp) >> elif action_type == ofproto_v1_0.OFPAT_ENQUEUE: >> buf = 'ENQUEUE:' + str(a.queue_id) >> elif action_type == ofproto_v1_0.OFPAT_VENDOR: >> buf = 'VENDOR' >> ......... >> >> >> I suggest to add the port of ENQUEUE action: >> elif action_type == ofproto_v1_0.OFPAT_SET_TP_DST: >> buf = 'SET_TP_DST:' + str(a.tp) >> elif action_type == ofproto_v1_0.OFPAT_ENQUEUE: >> - buf = 'ENQUEUE:' + str(a.queue_id) >> + buf = 'ENQUEUE:' + str(a.port) + " " + str(a.queue_id) >> elif action_type == ofproto_v1_0.OFPAT_VENDOR: >> buf = 'VENDOR' >> >> >> Is it OK? thanks > > Thanks you for Patch! > > Hmm, how about the following? > > + buf = 'ENQUEUE:' + str(a.port) + ":" + str(a.queue_id) > ^ > > This is because the display of ovs-ofctl is the following. > > $ sudo ovs-ofctl dump-flows s1 > NXST_FLOW reply (xid=0x4): > cookie=0x0, duration=554.974s, table=0, n_packets=0, n_bytes=0, > idle_age=554, dl_vlan=3 actions=enqueue:1:3 > > thanks > >> >> Weijie Liu >> >> >> >> ________________________________________ >> From: Minoru TAKAHASHI [[email protected]] >> Sent: Tuesday, June 23, 2015 1:14 >> To: Liu, Weijie; [email protected] >> Subject: Re: [Ryu-devel] Fail to query Queue with ofctl_rest >> >> Hi, >> >> On 2015年06月23日 05:43, Liu, Weijie wrote: >>> Hi, >>> >>> I was using Ryu 3.22 with Openflow 1.0 and tried to query the queue >>> information of the switches. But it failed with 404. >>> >>> What I did: >>> (1) sudo mn --controller remote --topo linear,3 >>> >>> (2) ryu-manager --observe-link rest_topology.py ofctl_rest.py >>> >>> (3) Then I used http://127.0.0.1:8080/stats/queue/1 to query queue >>> information of switch 1. It just said "404 resource not found" >>> >>> Any thing I missed? >>> Thanks a lot. >>> Jason Liu >> >> It looks corredt. And,it works correctly in my environment(Ryu 3.22 and >> OpenFlow1.0). >> My procedure is as follows. >> >>> (1) sudo mn --controller remote --topo linear,3 >> >> $ sudo mn --controller remote --topo linear,3 >> *** Creating network >> *** Adding controller >> Unable to contact the remote controller at 127.0.0.1:6633 >> *** Adding hosts: >> h1 h2 h3 >> *** Adding switches: >> s1 s2 s3 >> *** Adding links: >> (h1, s1) (h2, s2) (h3, s3) (s1, s2) (s2, s3) >> *** Configuring hosts >> h1 h2 h3 >> *** Starting controller >> *** Starting 3 switches >> s1 s2 s3 >> *** Starting CLI: >> mininet> >> >> >>> (2) ryu-manager --observe-link rest_topology.py ofctl_rest.py >> >> $ ryu-manager --observe-link rest_topology.py ofctl_rest.py >> loading app rest_topology.py >> loading app ofctl_rest.py >> loading app ryu.topology.switches >> loading app ryu.controller.ofp_handler >> instantiating app None of DPSet >> creating context dpset >> creating context wsgi >> instantiating app ryu.topology.switches of Switches >> instantiating app rest_topology.py of TopologyAPI >> instantiating app ryu.controller.ofp_handler of OFPHandler >> instantiating app ofctl_rest.py of RestStatsApi >> (8339) wsgi starting up on http://0.0.0.0:8080/ >> >> >>> (3) Then I used http://127.0.0.1:8080/stats/queue/1 to query queue >>> information of switch 1. It just said "404 resource not found" >> >> $ curl -X GET http://127.0.0.1:8080/stats/queue/1 >> {"1": []} >> >> thanks, >> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Monitor 25 network devices or servers for free with OpManager! >>> OpManager is web-based network management software that monitors >>> network devices and physical & virtual servers, alerts via email & sms >>> for fault. Monitor 25 devices for free with no restriction. Download now >>> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >>> >>> >>> >>> _______________________________________________ >>> Ryu-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/ryu-devel >>> >> ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
