netpalm icon indicating copy to clipboard operation
netpalm copied to clipboard

Update netmiko_drvr.py

Open hanunes opened this issue 3 years ago • 4 comments

Add the ability to pass an array to "ttp_template" key in netmiko args. It will match any given command in order with the template. If there's a command without a template, it should be put in the end of the command array, and it will get the raw data.

Example 1, will match command with template, in order (command1 -> template1, command2 -> template2) command: [ 'command1', 'command2' ] ttp_template: [ 'template1', 'template2' ]

Example 2, will match command with template, and command without template will return the raw data (command1 -> template1, command2 -> raw) command: [ 'command1', 'command2' ] ttp_template: [ 'template1' ]

If command and ttp_template are a string, they will be encapsulated in an array and will be matched as before.

hanunes avatar Sep 16 '22 12:09 hanunes

Where do I see where it failed?

hanunes avatar Sep 28 '22 08:09 hanunes

Can you try regen the redis cert and include in your pr. I think that may have expired

tbotnz avatar Sep 28 '22 09:09 tbotnz

Oh! On my install I actually have removed secure comms to redis (so no cert is being used rn)

hanunes avatar Sep 28 '22 10:09 hanunes

Is this still failing because of the redis certificate? Or is it something else?

hanunes avatar Oct 10 '22 10:10 hanunes