You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I'm having an issue with ttp as it's working fine when the Netmiko call is in the main body, but when I move all the code, including the Netmiko call, inside a function the dictionary returned is empty. Or even if I move ttp code to a function, and keep Netmiko call on the amin one, sending data through a function.
BUT, if instead using Netmiko to get the data I use plain text as data input, it works either way inside or outside a function.
Script with Netmiko and no Function returns proper dict:
when you moved the template variable in the function you accidentaly indented all the strings, thats why it was not matching anything. If you want to move the template back in the function write something like this:
Hi there,
I'm having an issue with ttp as it's working fine when the Netmiko call is in the main body, but when I move all the code, including the Netmiko call, inside a function the dictionary returned is empty. Or even if I move ttp code to a function, and keep Netmiko call on the amin one, sending data through a function.
BUT, if instead using Netmiko to get the data I use plain text as data input, it works either way inside or outside a function.
Script with Netmiko and no Function returns proper dict:
Script with Netmiko inside Function returns empty dict:
Script with plain data and no Function returns proper dict:
Script with plain data inside Function returns proper dict:
The text was updated successfully, but these errors were encountered: