Apr-22-2020, 01:53 PM
Hi Buran, many thanks for helping me.
For this example I used several funtions for the same goal to login into different devices/models with ssh, but later an funtion could also be used by another login methode. My problem is that the script I need to choose the correct funtions and that is where I get stuck.
Your solution helped me a lot. The script is able to read the csv file and then go to the funtion but it only uses only the last line in the csv file, so it is get information out of the latest device, I think the place of the dictionary is not good. I tried to move the dictionary on several other places in the script but then the script failes.
regards,
efclem
For this example I used several funtions for the same goal to login into different devices/models with ssh, but later an funtion could also be used by another login methode. My problem is that the script I need to choose the correct funtions and that is where I get stuck.
Your solution helped me a lot. The script is able to read the csv file and then go to the funtion but it only uses only the last line in the csv file, so it is get information out of the latest device, I think the place of the dictionary is not good. I tried to move the dictionary on several other places in the script but then the script failes.
regards,
efclem