New onos student

68 views
Skip to first unread message

Mohamed Oualla

unread,
Jun 6, 2022, 12:39:45 PM6/6/22
to onos-d...@onosproject.org
Hello,
Please i need your help, I want to learn to manage the topology in onos with mininet, and then create my own applications to customize it, please can you tell me what is the steps i should follow to learn it, and which version should I install, I really got stuck with it these last 2 weeks, and i have to make the progress.
Thanks for your help.

Osama Abu Hamdan

unread,
Jun 6, 2022, 1:58:23 PM6/6/22
to ONOS Discuss, oualla.s...@gmail.com
Hey,
You just a python code and run it with mininet
 sudo mn --mac --controller remote,ip=localhost --switch=ovs --custom ~/topology.py --topo mytopo
The code looks like
from mininet.topo import Topo

class MyTopo( Topo ):
    def __init__( self ):
        # Initialize topology
        Topo.__init__( self )
        # Add hosts
        h1 = self.addHost('h1')
        h2 = self.addHost('h2')
        # Add switches
        s1 = self.addSwitch('s1')
        s2 = self.addSwitch('s2')
        # Add links
        self.addLink(h1,s1)
        self.addLink(h2,s2)
        self.addLink(s1,s2)

topos = { 'mytopo': ( lambda: MyTopo() )}

Mohamed Oualla

unread,
Jun 6, 2022, 2:39:07 PM6/6/22
to ONOS Discuss, oabuh...@nevada.unr.edu
Thank you for the reply, and sharing this script with me, I already made a mininet topology, i followed the tutorial provided by onos (which has the clustered onos instances in the vm and the spine topology) i managed the intents.
I wanted something more advanced than this to learn onos, but i didn't find it.

Osama Abu Hamdan

unread,
Jun 6, 2022, 8:34:03 PM6/6/22
to ONOS Discuss, oualla.s...@gmail.com, Osama Abu Hamdan
What advanced level do you mean?

You should think of an application to create and after that, you figure out how to create it.

Best

0ice...@gmail.com

unread,
Jun 8, 2022, 9:19:30 AM6/8/22
to ONOS Discuss, oabuh...@nevada.unr.edu, oualla.s...@gmail.com
Hi Oualla,

Here you can find the wiki for start to developing an onos app https://wiki.onosproject.org/display/ONOS/Template+Application+Tutorial

best 
Davide
Reply all
Reply to author
Forward
0 new messages