Clarify which intf pair failed and raise exception

This commit is contained in:
Bob Lantz
2015-01-27 15:23:48 -08:00
parent bdad3e8c8e
commit 254fae2dc9
+2 -1
View File
@@ -190,7 +190,8 @@ def makeIntfPair( intf1, intf2, addr1=None, addr2=None, node1=None, node2=None,
if cmdOutput == '':
return True
else:
error( "Error creating interface pair: %s " % cmdOutput )
raise Exception( "Error creating interface pair (%s,%s): %s " %
( intf1, intf2, cmdOutput ) )
return False
def retry( retries, delaySecs, fn, *args, **keywords ):