The error is obtained due the unsupported version from OvS. I suggest you try to test by changing openflow version in the command for OvS.
On Thu, Feb 14, 2019, 10:20 AM Joaquin Gonzalez <joagonza...@gmail.com wrote: > Check within the switch if the configuration has been submitted correctly. > > I've been doing that using OVS commands directly within the switch like > this: > > def configureOVSdb(switches): > i = 1 > for switch in switches: > s = 's' + str(i) > info('*** Configurando OpenFlow13 en ' + s) > switch.cmd( 'ovs-vsctl set Bridge ' + s + ' protocols=OpenFlow13' ) > info('*** Configurando OVSDB port') > switch.cmd( 'ovs-vsctl set-manager ptcp:6632' ) > i = i + 1 > > ..... > class MyTopo( Topo ): > "Test topology" > > def build( self, **opts ): > > # add switches > s1 = self.addSwitch( 's1' ) > s2 = self.addSwitch( 's2' ) > > # add hosts > h1 = self.addHost( 'h1' ) > h2 = self.addHost( 'h2' ) > self.addLink( h1, s1 ) > self.addLink( h2, s2 ) > self.addLink( s1, s2 ) > > > def run(): > > topo = MyTopo() > # Defining remote controller (Ryu) > controller = RemoteController( 'c0', ip='127.0.0.1', port=6633 ) > net = Mininet( topo=topo, controller=controller, autoSetMacs=True ) > net.start() > > # Enviroment settings > controllerUrl = controller_query('0.0.0.0', '8080') > > # Get nodes - could be built with for in the future > [s1, s2] = [net.get('s1'), net.get('s2')] > [h1, h2] = [net.get('h1'), net.get('h2')] > switches = [s1, s2] > hosts = [h1, h2] > ports = ['5001', '5002', '5003'] > time = 20 > sleep(3) > > # Configurar protocolo y manager - could be a method > configureOVSdb(switches) > > El mié., 13 feb. 2019 a las 9:07, Wajahat Hussain Mir (< > mir.wajahat.huss...@gmail.com>) escribió: > >> Hi Joaquin, >> >> I have already set the protocols field inside the switch as "OpenFlow13". >> Could you suggest something else in this regard? >> >> >> >> >> >> >> >> >> >> With Regards >> Mir Wajahat Hussain >> >> >> On Wed, Feb 13, 2019 at 5:27 PM Joaquin Gonzalez <joagonza...@gmail.com> >> wrote: >> >>> You should change the version supported in OVSwitch in order to make it >>> work with OF1.3, by default is 1.0 >>> >>> El mié., 13 feb. 2019 08:38, Wajahat Hussain Mir < >>> mir.wajahat.huss...@gmail.com> escribió: >>> >>>> Hi All, >>>> >>>> I am running a python script whose code is shown below and when i'm" >>>> invoking *simple_switch_13.py* on the other side of the terminal i'm >>>> getting the errors as shown below >>>> >>>> unsupported version 0x1. If possible, set the switch to use one of the >>>> versions [4] on datapath ('127.0.0.1', 39050) >>>> unsupported version 0x1. If possible, set the switch to use one of the >>>> versions [4] on datapath ('127.0.0.1', 39051) >>>> unsupported version 0x1. If possible, set the switch to use one of the >>>> versions [4] on datapath ('127.0.0.1', 39052) >>>> unsupported version 0x1. If possible, set the switch to use one of the >>>> versions [4] on datapath ('127.0.0.1', 39053) >>>> >>>> Further when the same python script is run when invoking >>>> *simple_switch.py* it works fine.The Python script is shown below as >>>> >>>> >>>> from mininet.node import * >>>> from mininet.net import Mininet,Link >>>> from mininet.cli import CLI >>>> >>>> net = Mininet( ) >>>> >>>> c1 = net.addController('c1',controller=RemoteController) >>>> >>>> print("Adding Switches") >>>> s1 = net.addSwitch('s1', cls=OVSSwitch, protocols='OpenFlow13') >>>> s2 = net.addSwitch('s2', cls=OVSSwitch, protocols='OpenFlow13') >>>> s3 = net.addSwitch('s3', cls=OVSSwitch, protocols='OpenFlow13') >>>> >>>> print("Adding Host to the Network") >>>> >>>> h1 = net.addHost('h1') >>>> h2 = net.addHost('h2') >>>> h3 = net.addHost('h3') >>>> >>>> print("Adding links to the network") >>>> >>>> net.addLink(h1,s1) >>>> net.addLink(h2,s2) >>>> net.addLink(h3,s3) >>>> net.addLink(s2,s1) >>>> net.addLink(s2,s3) >>>> >>>> c1.start() >>>> net.start() >>>> >>>> print net.pingAll() >>>> >>>> CLI(net) >>>> net.stop() >>>> >>>> >>>> >>>> >>>> >>>> With Regards >>>> Mir Wajahat Hussain >>>> _______________________________________________ >>>> Ryu-devel mailing list >>>> Ryu-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel >>>> >>> > > -- > *Joaquin Gonzalez* > *Celular:* (11) 15-6-518-7224 > *Web*: http://uc.jgonzalez.com.ar > *PGP:* 4EEECCB12AB45A19A5AFCEAAFA0F690CF96788E0 > <http://uc.jgonzalez.com.ar/PGP/PublicKey.txt> > ---- > Exploit. A defect in the game code (see bug) or design that can be used to > gain unfair advantages. > > _______________________________________________ > Ryu-devel mailing list > Ryu-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ryu-devel >
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel