Run real-time commands

Normally with Python rules, you have to have some backups for Netpicker to test your assertion against.

First, let’s run a test and see if we have the word “ospf” in the configuration or not without getting a backup:

The rule fails even though we have one OSPF process configured on the device:

For this to work, we either have to trigger a device backup first, or run a real-time command using device.cli():

Would you like a hands-on session?

A couple times a week our in-house trainer is available for a private or group session. In this session we can cover our Slurp’it or Mock’it solution but also integrations with Netpicker, NetBox, Nautobot & Infrahub.

Yes, keep me informed

Connect with us on LinkedIn to stay updated on the latest happenings, news, and exciting developments at Slurp’it. Just click the button below to follow us and be a part of our professional network.

Newsletter