I figured out that in order to print the links information, I should use
--observe-links when executing this script. Now the information about the
links is printed.
But I still need a way to print out which interfaces of the switches are
connected to the host and which to the other switch.
Thank
Thank you Tseng. It helped me to extract information about the topology,
though in my case information about the links is not printed.
Also, Is there any way to find out which interfaces/ports of the switches
are connected to the hosts and which to other switches?
On Mon, Apr 13, 2015 at 2:06 PM,
To use api, you can use like this.
https://github.com/TakeshiTseng/SDN-Work/blob/master/GetSwitches/GetSwitches.py
Or you can just use rest_topology
https://github.com/osrg/ryu/blob/master/ryu/app/rest_topology.py
if you want to use restful api to get all switches/links
2015-04-13 19:33 GMT+0
hi,
Thank you for replying.
The problem is that whenever I try to run api.py using the following
command, it starts and stops on its own in a minute
sudo ./bin/ryu-manager ryu/topology/api.py
How to make use of this script? Is any other script calling this one?
On Mon, Apr 13, 2015 at 12:57 PM
Hi
To get all switch and link information, you can use :
ryu/topology/api.py
To get all hosts, you need to record host information while controller
receive packet in message, for example:
https://github.com/osrg/ryu/blob/master/ryu/app/simple_switch_13.py#L89
Yi
2015-04-13 18:32 GMT+08:00 R
Hello,
Is there any way app/script/module in Ryu controller using which we can
dump info about the switch and its ports, as in which what is connected at
which port?
My main aim is to know whether the host is directly connected to the switch
or reachable via other switch connected to this switch.