netpalm icon indicating copy to clipboard operation
netpalm copied to clipboard

Use multiple ttp templates with multiple commands

Open hanunes opened this issue 3 years ago • 4 comments

At the moment it's not possible to pass an array of commands to getconfig endpoint, and match multiple ttp templates to the output, meaning that you can't effectively parse data correctly. When you try to do this, only the first command get's parsed correctly.

Would this be too hard to implement?

hanunes avatar Sep 14 '22 08:09 hanunes

For now the best thing to do would be use a netpalm script inside netpalm or a service and trigger multiple calls via the netpalm manager class

tbotnz avatar Sep 14 '22 10:09 tbotnz

Basic example https://github.com/tbotnz/netpalm/blob/master/netpalm/backend/plugins/extensibles/custom_scripts/hello_world_advanced_using_netpalm_manager.py

tbotnz avatar Sep 14 '22 10:09 tbotnz

Would these multiple calls trigger multiple device connections? Cause I'd love the ability of taking all the output on just one connection.

hanunes avatar Sep 15 '22 08:09 hanunes

Created PR #190

hanunes avatar Sep 16 '22 12:09 hanunes