Skip to content
Snippets Groups Projects
Commit 3e2eb713 authored by Bob Lantz's avatar Bob Lantz
Browse files

Fix default of in-band control for OVS.

fixes #279
parent 06115a04
No related branches found
No related tags found
No related merge requests found
......@@ -956,14 +956,17 @@ def stop( self ):
class OVSSwitch( Switch ):
"Open vSwitch switch. Depends on ovs-vsctl."
def __init__( self, name, failMode='secure', datapath='kernel', **params ):
def __init__( self, name, failMode='secure', datapath='kernel',
inband=False, **params ):
"""Init.
name: name for switch
failMode: controller loss behavior (secure|open)
datapath: userspace or kernel mode (kernel|user)"""
datapath: userspace or kernel mode (kernel|user)
inband: use in-band control (False)"""
Switch.__init__( self, name, **params )
self.failMode = failMode
self.datapath = datapath
self.inband = inband
@classmethod
def setup( cls ):
......@@ -1056,6 +1059,9 @@ def start( self, controllers ):
for c in controllers ] )
if self.listenPort:
clist += ' ptcp:%s' % self.listenPort
if not self.inband:
self.cmd( 'ovs-vsctl set bridge', self,
'other-config:disable-in-band=true' )
self.cmd( 'ovs-vsctl set-controller', self, clist )
# Reconnect quickly to controllers (1s vs. 15s max_backoff)
for uuid in self.controllerUUIDs():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment