Skip to content
Snippets Groups Projects
Commit 00c3238e authored by lantz's avatar lantz
Browse files

Merge pull request #310 from rlane/ivs-verbose

IVSSwitch: add an option to control the --verbose flag
parents e07775c7 163a66c6
No related branches found
No related tags found
No related merge requests found
......@@ -1090,8 +1090,9 @@ def stop( self ):
class IVSSwitch(Switch):
"""IVS virtual switch"""
def __init__( self, name, **kwargs ):
def __init__( self, name, verbose=True, **kwargs ):
Switch.__init__( self, name, **kwargs )
self.verbose = verbose
@classmethod
def setup( cls ):
......@@ -1117,7 +1118,8 @@ def start( self, controllers ):
args = ['ivs']
args.extend( ['--name', self.name] )
args.extend( ['--dpid', self.dpid] )
args.extend( ['--verbose'] )
if self.verbose:
args.extend( ['--verbose'] )
for intf in self.intfs.values():
if not intf.IP():
args.extend( ['-i', intf.name] )
......
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