Hi,
You can enables the LLDP topology discovery feature, provided by "ryu.topology"
module, to discover switches (and hosts) on your topology.
https://github.com/osrg/ryu/blob/master/ryu/topology/api.py
https://github.com/osrg/ryu/blob/master/ryu/topology/event.py
=================
...(snip)...
from ryu.topology import api as topology_api
from ryu.topology import event as topology_event
class MyApp(app_manager.RyuApp):
def my_handler(self, ...):
...(snip)...
switches = topology_api.get_all_switch(self)
...(snip)...
@set_ev_cls(topology_event.EventSwitchEnter)
def _switch_enter_handler(self, ev):
self.logger.info("switch connected: %s", ev.switch)
...(snip)...
=================
Please note to enable Ryu's topology discovery service, please specify
"--observe-links" option to "ryu-manager".
$ ryu-manager --help
...(snip)...
--observe-links observe link discovery events.
...(snip)...
Thanks,
Iwase
On 2018年03月02日 05:13, Myra Sh wrote:
Hello,
I am new to Ryu controller. I have a wireless network with two
openvswitch(running on wireless nodes) both of them connected to Ryu.
Could you guide me how to enable topology discovery for this wireless network in
Ryu?
Using other SDN controllers, after connecting Openvswitches to the controller,
LLDP messages are exchanged between nodes in the network. Do I need to activate
LLDP messages manually in Ryu?
Thank you
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel