Populating our SSOT with Automation
文章介绍了一种通过自动化方法填充单一数据源(SSOT)的方案,使用Netmiko、NTC Templates和Nautobot REST API实现设备接口信息的自动读取与创建,并说明了所需的参数配置和API密钥获取方式。 2025-9-20 19:3:42 Author: www.adainese.it(查看原文) 阅读量:12 收藏

Post cover

Now, we need to populate our Single Source of Truth (SSOT). Manually adding interfaces for each device is impractical. Hence, automating this process by reading device configurations and creating corresponding SSOT objects is essential.

Currently, there’s no official system for automatic device discovery. This led me to develop NetDoc  years ago, though it’s currently exclusive to Netbox.

Let’s create a simple automation to efficiently handle this task.

Tools We’ll Use:

Assuming the device is manually created in our SSOT for convenience, our automation will focus solely on populating interfaces.

Let’s proceed step-by-step to develop our automation.

Parameters Needed for Our Automation

Our automation requires the following parameters to function effectively:

  • nautobot_base_url: The URL to access Nautobot.
  • nautobot_apikey: The API key for making REST API requests to Nautobot.
  • host: The IP address of the physical device to be read.
  • username: The username used to access the physical device.
  • password: The password used to access the physical device.

You can create the API key on Nautobot by navigating to User -> Profile -> API Tokens -> Add a token.

Continue reading the post on Patreon .


文章来源: https://www.adainese.it/blog/2024/07/10/populating-our-ssot-with-automation/
如有侵权请联系:admin#unsafe.sh