Add OVSController to complete out-of-box Ubuntu experience.

This commit is contained in:
Bob Lantz
2012-03-08 23:48:07 -08:00
parent d27a3c52b9
commit 9addfc13ce
2 changed files with 11 additions and 4 deletions
+5 -4
View File
@@ -20,7 +20,7 @@ from mininet.clean import cleanup
from mininet.cli import CLI
from mininet.log import lg, LEVELS, info, warn
from mininet.net import Mininet, init
from mininet.node import Host, CPULimitedHost, Controller, NOX
from mininet.node import Host, CPULimitedHost, Controller, OVSController, NOX
from mininet.node import RemoteController, UserSwitch, OVSKernelSwitch
from mininet.link import Intf, TCIntf
from mininet.topo import SingleSwitchTopo, LinearTopo, SingleSwitchReversedTopo
@@ -67,9 +67,10 @@ HOSTS = { 'proc': Host,
CONTROLLERDEF = 'ref'
CONTROLLERS = { 'ref': Controller,
'nox': NOX,
'remote': RemoteController,
'none': lambda name: None }
'ovsc': OVSController,
'nox': NOX,
'remote': RemoteController,
'none': lambda name: None }
INTFDEF = 'default'
INTFS = { 'default': Intf,
+6
View File
@@ -847,6 +847,12 @@ class Controller( Node ):
return ip
class OVSController( Controller ):
"Open vSwitch controller"
def __init__( self, name, command='ovs-controller', **kwargs ):
Controller.__init__( self, name, command=command, **kwargs )
# BL: This really seems to be poorly specified,
# so it's going to go away!