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

Pass code check

parent 340bf3cb
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ class ClusterCleanup( object ):
inited = False
serveruser = {}
@classmethod
def add( cls, server, user='' ):
"Add an entry to server: user dict"
......@@ -120,7 +120,7 @@ def add( cls, server, user='' ):
if not user:
user = findUser()
cls.serveruser[ server ] = user
@classmethod
def cleanup( cls ):
"Clean up"
......@@ -333,7 +333,7 @@ def batchStartup( cls, switches, **_kwargs ):
switch = group[ 0 ]
OVSSwitch.batchStartup( group, run=switch.cmd )
return switches
@classmethod
def batchShutdown( cls, switches, **_kwargs ):
"Stop switches in per-server batches"
......@@ -454,7 +454,8 @@ def makeTunnel( self, node1, node2, intfname1, intfname2,
if not addr:
result = node.cmd( 'ip link set tap9 name', intf )
else:
result = node.cmd( 'ip link set tap9 name', intf, 'address', addr )
result = node.cmd( 'ip link set tap9 name', intf,
'address', addr )
if result:
raise Exception( 'error renaming %s: %s' % ( intf, result ) )
return tunnel
......
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