Added setup for kernel switch.
This commit is contained in:
@@ -7,7 +7,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
|
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 lg, info
|
||||||
|
|
||||||
@@ -51,5 +51,6 @@ def scratchNet( cname='controller', cargs='ptcp:' ):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
lg.setLogLevel( 'info' )
|
lg.setLogLevel( 'info' )
|
||||||
info( '*** Scratch network demo (kernel datapath)\n' )
|
info( '*** Scratch network demo (kernel datapath)\n' )
|
||||||
|
KernelSwitch.setup()
|
||||||
init()
|
init()
|
||||||
scratchNet()
|
scratchNet()
|
||||||
|
|||||||
Reference in New Issue
Block a user