Revision 13554a3d

View differences:

examples/controlnet.py
109 109

  
110 110

  
111 111
# Make it Happen!!
112

  
112 113
def run():
114
    "Create control and data networks, and invoke the CLI"
115
    
113 116
    info( '* Creating Control Network\n' )
114 117
    ctopo = ControlNetwork( n=4, dataController=DataController )
115 118
    cnet = Mininet( topo=ctopo, ipBase='192.168.123.0/24', controller=None )
......
131 134

  
132 135
    mn = MininetFacade( net, cnet=cnet )
133 136

  
134
    # run the function passed as an argument
135 137
    CLI( mn )
136 138

  
137 139
    info( '* Stopping Data Network\n' )
......
140 142
    info( '* Stopping Control Network\n' )
141 143
    cnet.stop()
142 144

  
145

  
143 146
if __name__ == '__main__':
144 147
    setLogLevel( 'info' )
145

  
146 148
    run()

Also available in: Unified diff