blackbird release, tweaked function to write link provider file to accept alternate file path
diff --git a/TestON/drivers/common/cli/onosdriver.py b/TestON/drivers/common/cli/onosdriver.py
index b030231..4cf26e5 100644
--- a/TestON/drivers/common/cli/onosdriver.py
+++ b/TestON/drivers/common/cli/onosdriver.py
@@ -1758,7 +1758,7 @@
configFile.close()
os.system( "scp " + tempFile + " admin@" + benchIp + ":" + nullDevicePath)
- def createNullLinkProviderFile( self, benchIp, neighborIpList=0, eventRate=0, onNode=False):
+ def createNullLinkProviderFile( self, benchIp, neighborIpList=0,fileName="", eventRate=0, onNode=False):
'''
neighbor list is an optional list of neighbors to be written directly to the file
onNode - bool, if true, alternate file path will be used to scp, inteneded
@@ -1778,9 +1778,12 @@
configFile.write("#eventRate = \n")
else:
configFile.write("eventRate = " + str(eventRate) + "\n")
-
- configFile.write("#cfgFile = /tmp/foo.cfg #If enabled, points to the full path to the topology file.\n")
+ if fileName == "":
+ configFile.write("#cfgFile = /tmp/foo.cfg #If enabled, points to the full path to the topology file.\n")
+ else:
+ configFile.write("cfgFile =" + str(fileName) + "\n")
+
if neighborIpList != 0:
configFile.write("neighbors = ")
for n in range (0, len(neighborIpList)):