Change to use setLogLevel()
This commit is contained in:
@@ -9,7 +9,7 @@ but it exposes the configuration details and allows customization.
|
|||||||
from mininet.net import init
|
from mininet.net import init
|
||||||
from mininet.node import Node, KernelSwitch
|
from mininet.node import Node, KernelSwitch
|
||||||
from mininet.util import createLink
|
from mininet.util import createLink
|
||||||
from mininet.log import lg, info
|
from mininet.log import setLogLevel, info
|
||||||
|
|
||||||
def scratchNet( cname='controller', cargs='ptcp:' ):
|
def scratchNet( cname='controller', cargs='ptcp:' ):
|
||||||
"Create network from scratch using kernel switch."
|
"Create network from scratch using kernel switch."
|
||||||
@@ -49,7 +49,7 @@ def scratchNet( cname='controller', cargs='ptcp:' ):
|
|||||||
info( '\n' )
|
info( '\n' )
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
lg.setLogLevel( 'info' )
|
setLogLevel( 'info' )
|
||||||
info( '*** Scratch network demo (kernel datapath)\n' )
|
info( '*** Scratch network demo (kernel datapath)\n' )
|
||||||
KernelSwitch.setup()
|
KernelSwitch.setup()
|
||||||
init()
|
init()
|
||||||
|
|||||||
Reference in New Issue
Block a user