百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

netbox-config-diff

> 编程语言
开源

查找差异并将 NetBox 中的渲染设备配置推送到设备中,并将其应用。

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

查找差异并将 NetBox 中的渲染设备配置推送到设备中,并将其应用。

NetBox Config Diff Plugin

NetBox plugin for Config Diff.

  • Find diff between the rendered configuration for a device to its actual configuration, retrieved from the device itself, or stored in DataSource.
  • Push the rendered configuration from NetBox to a device and apply it.

Documentation: https://miaow2.github.io/netbox-config-diff/

About

Collecting diffs

With this plugin you can find diff between the rendered configuration for a device to its actual configuration, retrieved from the device itself, or stored in DataSource. Read about DataSources for further details.

Device configuration renders natively in NetBox. This feature was introduced in 3.5 version. NetBox Labs blog post about it.

Plugin supports a wide list of vendors (Cisco, Juniper, Huawei, MicroTik etc.) with the help of Scrapli. Read Scrapli and scrapli-community documentations to find full list of vendors.

Pushing configuration

Also you can push rendered configuration from NetBox to device and apply it.

Supported platforms:

  • arista_eos
  • cisco_iosxe
  • cisco_iosxr
  • cisco_nxos
  • juniper_junos

This is possible thanks to the scrapli_cfg. Read Scrapli documentation for more info.

Compatibility

NetBox Version Plugin Version
3.5 =>0.1.0, 0.1.0, 0.1.0, 2.6.0, 2.7.0, 2.9.0, 2.10.0, 2.11.0, 2.14.0
4.6 =>2.15.0
4.7 =>2.16.0

Installing

For adding to a NetBox Docker setup see the general instructions for using netbox-docker with plugins.

Install with pip:

bash
pip install netbox-config-diff

Add to local_requirements.txt:

bash
echo netbox-config-diff >> local_requirements.txt

Enable the plugin in /opt/netbox/netbox/netbox/configuration.py, or if you use netbox-docker, your /configuration/plugins.py file, and define credentials for devices connection:

python
PLUGINS = [
    "netbox_config_diff",
]

PLUGINS_CONFIG = {
    "netbox_config_diff": {
        "USERNAME": "foo",
        "PASSWORD": "bar",
        "AUTH_SECONDARY": "foobar",  # define here password for accessing Privileged EXEC mode, this variable is optional
        "PATH_TO_SSH_CONFIG_FILE": "/home/.ssh/config",  # define here PATH to SSH config file, it will be used for device connections, this variable is optional
    },
}

Run database migrations:

bash
python manage.py migrate

Collect static from the plugin:

bash
python manage.py collectstatic --noinput

Restart NetBox service:

bash
systemctl restart netbox netbox-rq

Usage

Read this doc about collecting diffs, for configuration management read this

Video

My presention about plugin at October NetBox community call (19.10.2023, plugin version 2.0.0).

Screenshots

Compliance finished with error

Render diff between configurations

No diff

Configuration request

Completed Configuration request

Credits

Based on the NetBox plugin tutorial:

  • demo repository
  • tutorial

This package was created with Cookiecutter and the netbox-community/cookiecutter-netbox-plugin project template.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonautomationconfiguration-complianceconfiguration-managementdiff

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言