Add OVSController to complete out-of-box Ubuntu experience.
This commit is contained in:
@@ -20,7 +20,7 @@ from mininet.clean import cleanup
|
|||||||
from mininet.cli import CLI
|
from mininet.cli import CLI
|
||||||
from mininet.log import lg, LEVELS, info, warn
|
from mininet.log import lg, LEVELS, info, warn
|
||||||
from mininet.net import Mininet, init
|
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.node import RemoteController, UserSwitch, OVSKernelSwitch
|
||||||
from mininet.link import Intf, TCIntf
|
from mininet.link import Intf, TCIntf
|
||||||
from mininet.topo import SingleSwitchTopo, LinearTopo, SingleSwitchReversedTopo
|
from mininet.topo import SingleSwitchTopo, LinearTopo, SingleSwitchReversedTopo
|
||||||
@@ -67,9 +67,10 @@ HOSTS = { 'proc': Host,
|
|||||||
|
|
||||||
CONTROLLERDEF = 'ref'
|
CONTROLLERDEF = 'ref'
|
||||||
CONTROLLERS = { 'ref': Controller,
|
CONTROLLERS = { 'ref': Controller,
|
||||||
'nox': NOX,
|
'ovsc': OVSController,
|
||||||
'remote': RemoteController,
|
'nox': NOX,
|
||||||
'none': lambda name: None }
|
'remote': RemoteController,
|
||||||
|
'none': lambda name: None }
|
||||||
|
|
||||||
INTFDEF = 'default'
|
INTFDEF = 'default'
|
||||||
INTFS = { 'default': Intf,
|
INTFS = { 'default': Intf,
|
||||||
|
|||||||
@@ -847,6 +847,12 @@ class Controller( Node ):
|
|||||||
return ip
|
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,
|
# BL: This really seems to be poorly specified,
|
||||||
# so it's going to go away!
|
# so it's going to go away!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user