Separate kernel and user switches into separate objects

This commit is contained in:
Brandon Heller
2010-01-02 10:58:28 -08:00
parent 16c57ddb33
commit 1bb4412ff3
4 changed files with 124 additions and 129 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ from ripcord.topo import FatTreeTopo
from mininet.logging_mod import lg, set_loglevel, LEVELS
from mininet.net import Mininet, init
from mininet.node import Switch, Host, Controller, ControllerParams, NOX
from mininet.node import KernelSwitch, Host, Controller, ControllerParams, NOX
from mininet.topo import TreeTopo
# built in topologies, created only when run
@@ -24,7 +24,7 @@ TOPOS = {'minimal' : (lambda: TreeTopo(depth = 2, fanout = 2)),
'fattree6' : (lambda: FatTreeTopo(k = 6))}
SWITCH_DEF = 'kernel'
SWITCHES = {'kernel' : Switch}
SWITCHES = {'kernel' : KernelSwitch}
HOST_DEF = 'process'
HOSTS = {'process' : Host}