On Tue, 1 Jul 2014 02:35:24 +0200
"Yashas V Bharadwaj" <[email protected]> wrote:
> I am unable to observe links of all the switches. Following are the steps
> which I have performed.
>
>
>
> 1. Start RYU-Manager with observe-links option.
>
> ./bin/ryu-manager --observe-links /home/ubuntu/PycharmProjects/XSDM/XSDMY.py
>
>
>
> 2. Start mininet with the below topology
>
> sudo mn --topo=tree,3 --controller=remote --switch=ovsk,protocols=OpenFlow13
>
>
>
> ubuntu@sdnhubvm:~[16:47]$ sudo mn --topo=tree,3 --controller=remote
> --switch=ovsk,protocols=OpenFlow13
>
> *** Creating network
>
> *** Adding controller
>
> *** Adding hosts:
>
> h1 h2 h3 h4 h5 h6 h7 h8
>
> *** Adding switches:
>
> s1 s2 s3 s4 s5 s6 s7
>
> *** Adding links:
>
> (h1, s3) (h2, s3) (h3, s4) (h4, s4) (h5, s6) (h6, s6) (h7, s7) (h8, s7) (s1,
> s2) (s1, s5) (s2, s3) (s2, s4) (s5, s6) (s5, s7)
I've attached an example code that I can get 12 links with your
topology properly:
$ ryu-manager --observe-links show_links_13.py
=
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_3
from ryu.topology import api
from ryu.lib import hub
import eventlet
class SimpleSwitch13(app_manager.RyuApp):
OFP_VERSIONS = [ofproto_v1_3.OFP_VERSION]
def __init__(self, *args, **kwargs):
super(SimpleSwitch13, self).__init__(*args, **kwargs)
hub.spawn(self.world)
def world(self):
while True:
print [link.to_dict() for link in api.get_all_link(self).iterkeys()]
eventlet.sleep(10)
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel