Changes between Version 49 and Version 50 of Tutorials/Optical/Mininet Optical Tutorial1


Ignore:
Timestamp:
Jul 27, 2022, 7:58:37 PM (22 months ago)
Author:
lantz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/Optical/Mininet Optical Tutorial1

    v49 v50  
    196196320/321 of `tor1` (output/input, respectively).
    197197
    198 Ethernet links are added sing `addLink()` calls:
     198Ethernet links are added using `addLink()` calls:
    199199{{{#!python
    200200        # Server<->ToR Ethernet links
     
    204204}}}
    205205
     206Lastly, the topology and network objects are instantiated and everything is started up (and shut down) in the `__main__` section of the network setup script:
     207
     208{{{#!python
     209if __name__ == '__main__':
     210    ...
     211    topo = TutorialTopo()
     212    net = Mininet( topo=topo, controller=None )
     213    restServer = RestServer( net )
     214    net.start()
     215    restServer.start()
     216    netconfServer = NetconfServer(
     217        net, username=username, password=password, sslkeyfile=sslkeyfile )
     218    netconfServer.start()
     219    ...
     220    if 'test' in argv:
     221        test(net)
     222    else:
     223        info(TutorialTopo.__doc__+'\n')
     224        CLI(net)
     225    netconfServer.stop()
     226    restServer.stop()
     227    net.stop()
     228    info( 'Done.\n')
     229}}}
    206230
    207231= Creating the Mininet-Optical Network =