Revision e0bf8ece examples/numberedports.py

View differences:

examples/numberedports.py
9 9
from mininet.net import Mininet
10 10
from mininet.node import Controller
11 11
from mininet.log import setLogLevel, info, warn
12
from mininet.node import Node
13 12

  
14 13
def validatePort( switch, intf ):
15 14
    "Validate intf's OF port number"
......
48 47
    net.addLink( h4, s1 )
49 48
    net.addLink( h5, s1, port1 = 1, port2 = 9 ) # specify a different port to connect host 5 to on the switch.
50 49

  
51
    root = Node( 'root', inNamespace=False )
52 50
    info( '*** Starting network\n' )
53 51
    net.start()
54 52

  

Also available in: Unified diff