Commit b385067e authored by Gamage G.G.I.V.M's avatar Gamage G.G.I.V.M

Delete topology.py

parent 8dc98ca5
from mininet.net import Mininet
from mininet.topo import Topo
class MyTopology(Topo):
def build(self):
switch = self.addSwitch('s1')
host1 = self.addHost('h1')
host2 = self.addHost('h2')
self.addLink(host1, switch)
self.addLink(host2, switch)
if __name__ == '__main__':
topo = MyTopology()
net = Mininet(topo)
net.start()
net.pingAll()
net.stop()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment