To add external libraries for using in the python rules, these are the steps: Modify the docker-compose.override.yml:x-shared-libs: &shared-libs:environment:PYTHONPATH:...
How can we help?
Using custom TextFSM templates
First, place your TextFSM index and templates in a directory on the host machine. Then, edit the x-api section in docker-compose.override.yml by Adding a new environment...
Automation: Jobs and Workflows
In the automation section you can take your devices, and run jobs on them. These jobs are written in python code and will allow you to execute cli commands on your device. You...
Entering configuration / edit / enable / elevated / sudo mode
You can enter ‘configuration mode’, ‘edit mode’, ‘enable mode’, ‘evelated mode’ or ‘sudo mode’ for Linux for a device in a Netpicker rule using:def rule_processes(device):with...
Webhooks
Webhooks are triggered after Netpicker completes a process. Use the {{ __ctx__ }} tag in the webhook template to get the results as dictionary or use the {{ __ctx__ | tojson...
Getting structured output from show commands using Netpicker and TextFSM
When using show commands in a Netpicker Python rule, the output of these show commands will be plain text, like in this...