Revision ecddbcf2

View differences:

examples/emptynet.py
27 27
    s3 = net.addSwitch( 's3' )
28 28

  
29 29
    info( '*** Creating links\n' )
30
    h1.linkTo( s3 )
31
    h2.linkTo( s3 )
30
    net.addLink( h1, s3 )
31
    net.addLink( h2, s3 )
32 32

  
33 33
    info( '*** Starting network\n')
34 34
    net.start()

Also available in: Unified diff