Karthik Sharma
2014-04-11 23:16:34 UTC
I am new to RYU.I am trying to run a very simple RYU application as shown
below.
{noformat}
./bin/ryu-manager ryu/app/simple_switch_13.py
loading app ryu/app/simple_switch_13.py
loading app ryu.controller.ofp_handler
instantiating app ryu/app/simple_switch_13.py of SimpleSwitch13
instantiating app ryu.controller.ofp_handler of OFPHandler
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
{noformat}
I have a mininet running a custom topology on the other terminal on the
same machine
{noformat}
sudo python custom/topo-onos-2.py
{noformat}
My topology file is given blelow
{noformat}
#!/usr/bin/python
from mininet.node import Controller, RemoteController, OVSController
from mininet.node import CPULimitedHost, Host, Node
from mininet.node import OVSKernelSwitch, UserSwitch
from mininet.node import OVSSwitch
from mininet.net import Mininet
from mininet.cli import CLI
from mininet.log import setLogLevel, info
from mininet.link import TCLink, Intf
def myNetwork():
net = Mininet( topo=None,
autoStaticArp=True,
autoSetMacs=True,
build=False,
ipBase='10.0.0.0/8')
info( '*** Adding controller\n' )
c0=net.addController(name='c0',
controller=RemoteController,
ip='192.168.241.130',
port=6633)
c1=net.addController(name='c1',
controller=RemoteController,
ip='192.168.241.129',
port=6633)
info( '*** Add switches\n')
s1 = net.addSwitch('s1', cls=OVSKernelSwitch, dpid='0000000000000201')
s2 = net.addSwitch('s2', cls=OVSKernelSwitch, dpid='0000000000000202')
s3 = net.addSwitch('s3', cls=OVSKernelSwitch, dpid='0000000000000203')
s4 = net.addSwitch('s4', cls=OVSKernelSwitch, dpid='0000000000000204')
s5 = net.addSwitch('s5', cls=OVSKernelSwitch, dpid='0000000000000205')
s6 = net.addSwitch('s6', cls=OVSKernelSwitch, dpid='0000000000000206')
info( '*** Add hosts\n')
h1 = net.addHost('h1', cls=Host, ip='10.0.0.1', defaultRoute=None)
h2 = net.addHost('h2', cls=Host, ip='10.0.0.2', defaultRoute=None)
h3 = net.addHost('h3', cls=Host, ip='10.0.0.3', defaultRoute=None)
h4 = net.addHost('h4', cls=Host, ip='10.0.0.4', defaultRoute=None)
h5 = net.addHost('h5', cls=Host, ip='10.0.0.5', defaultRoute=None)
h6 = net.addHost('h6', cls=Host, ip='10.0.0.6', defaultRoute=None)
info( '*** Add links\n')
net.addLink(h1, s1)
net.addLink(h2, s2)
net.addLink(h3, s3)
net.addLink(h4, s4)
net.addLink(h5, s5)
net.addLink(h6, s6)
info(' *** switch to switch \n')
net.addLink(s4, s1)
net.addLink(s5, s2)
net.addLink(s6, s3)
info( '*** Starting network\n')
net.build()
info( '*** Starting controllers\n')
for controller in net.controllers:
controller.start()
info( '*** Starting switches\n')
net.get('s1').start([c0])
net.get('s2').start([c0])
net.get('s3').start([c0])
net.get('s4').start([c0])
net.get('s5').start([c0])
net.get('s6').start([c0])
info( '*** Configuring switches\n')
CLI(net)
net.stop()
if __name__ == '__main__':
setLogLevel( 'info' )
myNetwork()
{noformat}
Why am I getting the warning messages that I see below when the topology of
switches connect to the controller?
{noformat}
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
{noformat}
Thanks & Regards,
Karthik.
below.
{noformat}
./bin/ryu-manager ryu/app/simple_switch_13.py
loading app ryu/app/simple_switch_13.py
loading app ryu.controller.ofp_handler
instantiating app ryu/app/simple_switch_13.py of SimpleSwitch13
instantiating app ryu.controller.ofp_handler of OFPHandler
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
{noformat}
I have a mininet running a custom topology on the other terminal on the
same machine
{noformat}
sudo python custom/topo-onos-2.py
{noformat}
My topology file is given blelow
{noformat}
#!/usr/bin/python
from mininet.node import Controller, RemoteController, OVSController
from mininet.node import CPULimitedHost, Host, Node
from mininet.node import OVSKernelSwitch, UserSwitch
from mininet.node import OVSSwitch
from mininet.net import Mininet
from mininet.cli import CLI
from mininet.log import setLogLevel, info
from mininet.link import TCLink, Intf
def myNetwork():
net = Mininet( topo=None,
autoStaticArp=True,
autoSetMacs=True,
build=False,
ipBase='10.0.0.0/8')
info( '*** Adding controller\n' )
c0=net.addController(name='c0',
controller=RemoteController,
ip='192.168.241.130',
port=6633)
c1=net.addController(name='c1',
controller=RemoteController,
ip='192.168.241.129',
port=6633)
info( '*** Add switches\n')
s1 = net.addSwitch('s1', cls=OVSKernelSwitch, dpid='0000000000000201')
s2 = net.addSwitch('s2', cls=OVSKernelSwitch, dpid='0000000000000202')
s3 = net.addSwitch('s3', cls=OVSKernelSwitch, dpid='0000000000000203')
s4 = net.addSwitch('s4', cls=OVSKernelSwitch, dpid='0000000000000204')
s5 = net.addSwitch('s5', cls=OVSKernelSwitch, dpid='0000000000000205')
s6 = net.addSwitch('s6', cls=OVSKernelSwitch, dpid='0000000000000206')
info( '*** Add hosts\n')
h1 = net.addHost('h1', cls=Host, ip='10.0.0.1', defaultRoute=None)
h2 = net.addHost('h2', cls=Host, ip='10.0.0.2', defaultRoute=None)
h3 = net.addHost('h3', cls=Host, ip='10.0.0.3', defaultRoute=None)
h4 = net.addHost('h4', cls=Host, ip='10.0.0.4', defaultRoute=None)
h5 = net.addHost('h5', cls=Host, ip='10.0.0.5', defaultRoute=None)
h6 = net.addHost('h6', cls=Host, ip='10.0.0.6', defaultRoute=None)
info( '*** Add links\n')
net.addLink(h1, s1)
net.addLink(h2, s2)
net.addLink(h3, s3)
net.addLink(h4, s4)
net.addLink(h5, s5)
net.addLink(h6, s6)
info(' *** switch to switch \n')
net.addLink(s4, s1)
net.addLink(s5, s2)
net.addLink(s6, s3)
info( '*** Starting network\n')
net.build()
info( '*** Starting controllers\n')
for controller in net.controllers:
controller.start()
info( '*** Starting switches\n')
net.get('s1').start([c0])
net.get('s2').start([c0])
net.get('s3').start([c0])
net.get('s4').start([c0])
net.get('s5').start([c0])
net.get('s6').start([c0])
info( '*** Configuring switches\n')
CLI(net)
net.stop()
if __name__ == '__main__':
setLogLevel( 'info' )
myNetwork()
{noformat}
Why am I getting the warning messages that I see below when the topology of
switches connect to the controller?
{noformat}
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
unsupported version 0x1. If possible, set the switch to use one of the
versions [4]
{noformat}
Thanks & Regards,
Karthik.