Clarify which intf pair failed and raise exception
This commit is contained in:
+2
-1
@@ -190,7 +190,8 @@ def makeIntfPair( intf1, intf2, addr1=None, addr2=None, node1=None, node2=None,
|
|||||||
if cmdOutput == '':
|
if cmdOutput == '':
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
error( "Error creating interface pair: %s " % cmdOutput )
|
raise Exception( "Error creating interface pair (%s,%s): %s " %
|
||||||
|
( intf1, intf2, cmdOutput ) )
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def retry( retries, delaySecs, fn, *args, **keywords ):
|
def retry( retries, delaySecs, fn, *args, **keywords ):
|
||||||
|
|||||||
Reference in New Issue
Block a user