From 6ab417ccd76b740fab69825afaad5513267b8391 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Mon, 22 Mar 2010 16:24:04 -0700 Subject: [PATCH] Added setup for kernel switch. --- examples/scratchnet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/scratchnet.py b/examples/scratchnet.py index 5f21ca1..1b9dd4a 100755 --- a/examples/scratchnet.py +++ b/examples/scratchnet.py @@ -7,7 +7,7 @@ but it exposes the configuration details and allows customization. """ from mininet.net import init -from mininet.node import Node +from mininet.node import Node, KernelSwitch from mininet.util import createLink from mininet.log import lg, info @@ -51,5 +51,6 @@ def scratchNet( cname='controller', cargs='ptcp:' ): if __name__ == '__main__': lg.setLogLevel( 'info' ) info( '*** Scratch network demo (kernel datapath)\n' ) + KernelSwitch.setup() init() scratchNet()