Signed-off-by: YAMADA Hideki <[email protected]> --- ryu/topology/switches.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index 6b69a00..318473f 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.py @@ -804,7 +804,8 @@ class Switches(app_manager.RyuApp): def get_switch(app, dpid=None): - return app.send_request(event.EventSwitchRequest(dpid)) + rep = app.send_request(event.EventSwitchRequest(dpid)) + return rep.switches def get_all_switch(app): @@ -812,7 +813,8 @@ def get_all_switch(app): def get_link(app, dpid=None): - return app.send_request(event.EventLinkRequest(dpid)) + rep = app.send_request(event.EventLinkRequest(dpid)) + return rep.links def get_all_link(app): -- 1.7.1 ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
