blob: bb964e2b255adbc9fd44246ab8809a92dffc7f30 [file] [log] [blame]
Thomas Vachuska164fa5c2014-12-02 21:59:41 -08001
2from mininet.topo import Topo
3
4class MyTopo( Topo ):
5 "10 'floating' switch topology"
6
7 def __init__( self ):
8 # Initialize topology
9 Topo.__init__( self )
10
11 sw_list = []
12 swC = self.addSwitch('sc', dpid = 'ffffffff00000001')
13
14 for i in range(1, 201):
15 switch=self.addSwitch('s'+str(i), dpid = str(i).zfill(16))
16 self.addLink(switch,swC)
17
18 sw_list.append(switch)
19
20topos = { 'mytopo': ( lambda: MyTopo() ) }