mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-04 20:06:09 +02:00
topology: exported function returns Switch/Link list instead of event
Signed-off-by: YAMADA Hideki <yamada.hideki@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
4590e0d20e
commit
2a7e193fae
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user