Hello,

I'm trying to run the code below with Ryu and BOFUSS, and my host hangs.
Does anyone have any idea what could be causing this?

In order to reproduce the problem only 3 steps are required:

1. run the code below
2. *xterm h1*
3. run *PYTHONPATH=. ./bin/ryu-manager --ofp-tcp-listen-port 6653
ryu/app/simple_switch_13.py* from h1 terminal.

It hangs after ~30sec-1min. Tested with the latest version of Ryu and
BOFUSS. Not sure if this could be a kernel related issue, but my kernel
version is 5.0, Ubuntu 18.04.

#!/usr/bin/python
from time import sleep
from mininet.log import setLogLevel, info
from mininet.node import RemoteController, UserSwitch
from mininet.cli import CLI
from mininet.net import Mininet


class InbandController( RemoteController ):

    def checkListening( self ):
        "Overridden to do nothing."
        return

def topology():

    "Create a network."
    net = Mininet(controller=InbandController,
                  switch=UserSwitch,
                 )

    ip_c0 = '10.0.0.101'

    info("*** Creating nodes\n")
    enb1 = net.addSwitch('enb1', mac='00:00:00:00:00:01', inNamespace=True,
dpid='1')
    h1 = net.addHost('h1', ip=ip_c0)
    c0 = net.addController('c0', controller=InbandController, port=6653,
ip=ip_c0)

    net.addLink(h1, enb1)

    info("*** Starting network\n")
    net.build()
    enb1.start([c0])

    sleep(3)
    enb1.cmd('sysctl net.ipv4.ip_forward=1')
    enb1.cmd('ifconfig enb1-eth1 10.0.0.201')

    info("*** Running CLI\n")
    CLI(net)

    info("*** Stopping network\n")
    net.stop()

if __name__ == '__main__':
    setLogLevel('info')
    topology()
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to