Hi, Please don't drop the mailing list.
>How does the topology viewer works? Usage is described in Ryu-documentation. http://ryu.readthedocs.org/en/latest/gui.html >Does it generate the information or only showing information from mm? No. Topology Viewer can work real environment. thanks On 2015年03月05日 22:39, Hakan Calim wrote: > Hi, > > ok. Thanks. > > Now I tried to run the topology viewer: > ryu run --observe-links app/gui_topology/gui_topology.py --wsapi-host > 10.16.0.10 > loading app app/gui_topology/gui_topology.py > loading app ryu.app.rest_topology > loading app ryu.app.ws_topology > loading app ryu.app.ofctl_rest > loading app ryu.controller.ofp_handler > instantiating app None of Switches > creating context switches > instantiating app None of DPSet > creating context dpset > creating context wsgi > instantiating app app/gui_topology/gui_topology.py of GUIServerApp > instantiating app ryu.app.rest_topology of TopologyAPI > instantiating app ryu.app.ws_topology of WebSocketTopology > instantiating app ryu.app.ofctl_rest of RestStatsApi > instantiating app ryu.controller.ofp_handler of OFPHandler > (22088) wsgi starting up on http://10.16.0.10:8080/ > > When I access this with my web browser I see only blank page. It seems that > there are no topology information. How does the topology viewer works? Does > it generate the information or only showing information from mm?> > Thanks! > > Best regards, > Hakan > > > Am 05.03.2015 09:03, schrieb Minoru TAKAHASHI: >> Hi, >> >> Hmm,,, I think that how to use app/ofctl_rest.py is correct. >> Because following steps succeeded at my environment(Ryu ver3.18, OpenvSwitch >> ver2.3.90). >> >> 1.Get flows stats. >> ryu (master)$ curl http://127.0.0.1:8080/stats/flow/1 >> {"1": [{"actions": ["OUTPUT:6"], "idle_timeout": 0, "cookie": 0, >> "packet_count": 0, "hard_timeout": 0, "byte_count": 0, "length": 96, >> "duration_nsec": 295000000, "priority": 1, "duration_sec": 7, "table_id": 0, >> "flags": 0, "match": {"dl_dst": "52:54:00:53:31:7d", "in_port": 7}}, >> {"actions": ["OUTPUT:7"], "idle_timeout": 0, "cookie": 0, "packet_count": 0, >> "hard_timeout": 0, "byte_count": 0, "length": 96, "duration_nsec": >> 217000000, "priority": 1, "duration_sec": 7, "table_id": 0, "flags": 0, >> "match": {"dl_dst": "52:54:00:3f:6e:a6", "in_port": 6}}, {"actions": >> ["OUTPUT:4294967293"], "idle_timeout": 0, "cookie": 0, "packet_count": 0, >> "hard_timeout": 0, "byte_count": 0, "length": 80, "duration_nsec": >> 414000000, "priority": 0, "duration_sec": 6, "table_id": 0, "flags": 0, >> "match": {}}]} >> ryu (master)$ >> >> 2.Add a flow. >> ryu (master)$ curl -X POST -d '{ "dpid": 1, "cookie": 2, "cookie_mask": \ >>> 2, "table_id": 0, "idle_timeout": 10, "hard_timeout": 10, "priority": \ >>> 11111, "flags": 1, "match":{ "in_port":7}, "actions":[ { \ >>> "type":"OUTPUT", "port": 6 } ] }' http://127.0.0.1:8080/stats/flowentry/add >> 3.Get flows stats. >> ryu (master)$ curl http://127.0.0.1:8080/stats/flow/1 >> {"1": [{"actions": ["OUTPUT:6"], "idle_timeout": 10, "cookie": 2, >> "packet_count": 0, "hard_timeout": 10, "byte_count": 0, "length": 88, >> "duration_nsec": 192000000, "priority": 11111, "duration_sec": 8, >> "table_id": 0, "flags": 1, "match": {"in_port": 7}}, {"actions": >> ["OUTPUT:6"], "idle_timeout": 0, "cookie": 0, "packet_count": 0, >> "hard_timeout": 0, "byte_count": 0, "length": 96, "duration_nsec": >> 632000000, "priority": 1, "duration_sec": 21, "table_id": 0, "flags": 0, >> "match": {"dl_dst": "52:54:00:53:31:7d", "in_port": 7}}, {"actions": >> ["OUTPUT:7"], "idle_timeout": 0, "cookie": 0, "packet_count": 0, >> "hard_timeout": 0, "byte_count": 0, "length": 96, "duration_nsec": >> 554000000, "priority": 1, "duration_sec": 21, "table_id": 0, "flags": 0, >> "match": {"dl_dst": "52:54:00:3f:6e:a6", "in_port": 6}}, {"actions": >> ["OUTPUT:4294967293"], "idle_timeout": 0, "cookie": 0, "packet_count": 0, >> "hard_timeout": 0, "byte_count": 0, "length": 80, "duration_nsec": >> 751000000, "priority": 0, >> "duration_sec": >> 2 >> 0, "table_id": 0, "flags": 0, "match": {}}]} >> >> I am sorry that I was not able to be helpful. >> >> thanks >> >> On 2015年03月04日 23:23, Hakan Calim wrote: >>> Hi all, >>> >>> I try to add flows on my OpenFlow Switch which is created on a HP 5900 >>> as a OpenFlow instance. I am using app/ofctl_rest.py. When I send the >>> following command I get: >>> >>> curl -X GET http://10.16.0.10:8080/stats/flow/637929653646665 >>> {"637929653646665": [{"actions": ["OUTPUT:6"], "idle_timeout": 0, >>> "cookie": 0, "packet_count": 1031, "hard_timeout": 0, "byte_count": >>> 18446744073709551615, "length": 96, "duration_nsec": 4294967295, >>> "priority": 1, "duration_sec": 167475, "table_id": 0, "flags": 0, >>> "match": {"dl_dst": "52:54:00:53:31:7d", "in_port": 7}}, {"actions": >>> ["OUTPUT:7"], "idle_timeout": 0, "cookie": 0, "packet_count": 864, >>> "hard_timeout": 0, "byte_count": 18446744073709551615, "length": 96, >>> "duration_nsec": 4294967295, "priority": 1, "duration_sec": 167475, >>> "table_id": 0, "flags": 0, "match": {"dl_dst": "52:54:00:3f:6e:a6", >>> "in_port": 6}}, {"actions": ["OUTPUT:4294967293"], "idle_timeout": 0, >>> "cookie": 0, "packet_count": 6113, "hard_timeout": 0, "byte_count": >>> 18446744073709551615, "length": 80, "duration_nsec": 4294967295, >>> "priority": 0, "duration_sec": 90772, "table_id": 0, "flags": 0, >>> "match": {}}]} >>> >>> Then I try to add a flow with the following command: >>> curl -X POST -d '{ "dpid": 637929653646665, "cookie": 2, "cookie_mask": >>> 2, "table_id": 0, "idle_timeout": 10, "hard_timeout": 10, "priority": >>> 11111, "flags": 1, "match":{ "in_port":7}, "actions":[ { >>> "type":"OUTPUT", "port": 6 } ] }' http://10.16.0.10:8080/stats/flowentry/add >>> >>> On the controller I see: >>> (18345) accepted ('10.16.0.1', 57610) >>> 10.16.0.1 - - [04/Mar/2015 15:16:17] "GET /stats/flow/637929653646665 >>> HTTP/1.1" 200 1012 0.112544 >>> >>> >>> but nothing happens. When I call again the GET command from above I get >>> the same result. Nothing changed. What is wrong? >>> >>> Best regards, >>> Hakan >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming The Go Parallel Website, >>> sponsored >>> by Intel and developed in partnership with Slashdot Media, is your hub for >>> all >>> things parallel software development, from weekly thought leadership blogs >>> to >>> news, videos, case studies, tutorials and more. Take a look and join the >>> conversation now. http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Ryu-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/ryu-devel >>> > > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
