Hi, I don't think Ryu returns wrong dpid.
$ sudo ryu-manager ryu.app.simple_switch_13 ryu.app.ofctl_rest loading app ryu.app.simple_switch_13 loading app ryu.app.ofctl_rest loading app ryu.controller.ofp_handler instantiating app None of DPSet creating context dpset creating context wsgi instantiating app ryu.app.ofctl_rest of RestStatsApi instantiating app ryu.app.simple_switch_13 of SimpleSwitch13 instantiating app ryu.controller.ofp_handler of OFPHandler (9062) wsgi starting up on http://0.0.0.0:8080/ packet in 6790944927334400461 8e:7d:cb:89:e8:2e ff:ff:ff:ff:ff:ff 1 packet in 6790944927334400461 9e:67:5c:ae:f8:52 8e:7d:cb:89:e8:2e 2 packet in 6790944927334400461 8e:7d:cb:89:e8:2e 9e:67:5c:ae:f8:52 1 : $ curl -X GET http://localhost:8080/stats/switches [6790944927334400461] $ curl -X GET http://localhost:8080/stats/switches | python -mjson.tool [ 6790944927334400461 ] Maybe I think json parse tool(you use) has some problems. In my enviroment, "jq" returned different dpid. $ curl -X GET http://localhost:8080/stats/switches | jq . [ 6790944927334400000 ] But, I don't know why... Thanks On 2015年02月05日 11:56, ビバ9╆ wrote: > Dear all > A problem encountered when I use the ryu-controller,the dpid of the SDN > switch displayed at ryu-controller sever is not the same as using REST > API(/stats/switches) to get ,the detail as next: > After running ryu-controller sever and point the SDN switch to the > controller,I can see the packet in data at the ryu-controller sever,the data > is:"packet in 6790944927334400461 48:5a:b1:36:45:8d ff:ff:ff:ff:ff:ff 1". > From the data we can get the dpid of the SDN switch is > 6790944927334400461.But when I using the REST API to get the SDN > information,I get another dpid 6790944927334400000 .And there is only a SDN > switch have pointed to the ryu-controller.You also can see the next picture. > > > From this picture we can see the dpid of the SDN switch > is 6790944927334400461. > > > From this picture we can see the dpid is > 6790944927334400000,and this dpid is wrong.The true dpid is the one displayed > on ryu-controller server. > > I have afflict by this problem for a long time,if anyone can give me some > help,thanks very much! > > Best Regards > PanCheng > > > > > > ------------------------------------------------------------------------------ > 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
