Thank you, this one works.
Actually I was trying to get the links to the hosts, but I realized could
just get it from the mac_to_port lists.
Anyway, I have a different question.
Is it possible to know if 2 different interfaces belong to the same host ?
for example is if this host is connected to a switch through 2 different
interface.
Best regards,
Chandra
On Mon, Mar 2, 2015 at 6:16 AM, Yusuke Iwase <[email protected]>
wrote:
> Hi Chandra,
>
> On 2015年02月28日 02:26, Chandra Satriana wrote:
> > Hello,
> >
> > I am trying to get the topology of a network, composed of a user space
> switch (https://github.com/CPqD/ofsoftswitch13), mininet (version 2.1.0),
> and ryu controller. To get the topology I run the rest_topology.py, like so:
> > ~/ryu/ryu/app$ ryu-manager --verbose --observe-links rest_topology.py
> simple_switch_13.py
> >
> > and mininet is run like this: sudo mn --topo single,2 --mac --switch
> user --controller remote
> >
> > Testing connectivity:
> > mininet> pingall
> > *** Ping: testing ping reachability
> > h1 -> h2
> > h2 -> h1
> > *** Results: 0% dropped (2/2 received)
> >
> > When executing the curl :
> >
> > curl -X GET http://localhost:8080/v1.0/topology/switches
> > [{"ports": [{"hw_addr": "b2:08:80:16:40:1b", "name": "s1-eth1",
> "port_no": "00000001", "dpid": "0000000000000001"}, {"hw_addr":
> "aa:7f:8b:3d:b6:cd", "name": "s1-eth2", "port_no": "00000002", "dpid":
> "0000000000000001"}], "dpid": "0000000000000001"}]
> >
> > curl -X GET http://localhost:8080/v1.0/topology/links
> > []
> >
> >
> > And on the ryu log information:
> > EVENT TopologyAPI->switches EventLinkRequest
> > 127.0.0.1 - - [27/Feb/2015 14:17:15] "GET /v1.0/topology/links HTTP/1.1"
> 200 124 0.000687
> >
> > Can you tell me why the links are not reported ?
>
> Because your network on the mininet has no Switch-Switch Link,
> the get links command returns an empty list.
> This command reports Switch-Switch Links but does not report Switch-Host
> Links.
>
> Then how about the following network on the mininet?
> e.g.)
> $ sudo mn --topo linear,3,1 --mac --switch user --controller remote
>
> Thanks
>
> >
> >
> >
> > Best regards,
> > Chandra
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > 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