Building your own SSoT integration
Building an integration on top of the Nautobot SSoT framework is not hard. At its core, every integration is a Nautobot job on steroids that can be set up as an independent job either in a stand-alone application or as an extra job, as in our instance.
The hot point is on the data modeling translation. The Nautobot SSoT framework leverages the DiffSync library that provides some helper methods to assist with this.
In this section, we will use a simple example that takes as data source a YAML file, and it loads the data into Nautobot. The complete code example can be found at https://github.com/PacktPublishing/Network-Automation-with-Nautobot/tree/main/appendix-02/jobs. You can get to use it by adding it to your Nautobot installation in the jobs
folder:
nautobot@nautobot-dev:~$ tree /opt/nautobot/jobs//opt/nautobot/jobs/ ├── __init__.py ├── example.yaml └── example_ssot.py