A plugin for configuration on nautobot
Project description
nautobot-golden-config
A plugin for Nautobot that intends to provide context around golden configuration.
This version is currently in Beta and will require a rebuild of the database for a 1.0 release.
Introduction
What is the Golden Configuration Plugin?
The golden configuration plugin is a Nautobot plugin that aims to solve common configuration management challenges.
Key Use Cases
This plugin enable four (4) key use cases.
- Configuration Backups - Is a Nornir process to connect to devices, optionally parse out lines/secrets, backup the configuration, and save to a Git repository.
- Intended Configuration - Is a Nornir process to generate configuration based on a Git repo of Jinja files to combine with a GraphQL generated data and a Git repo to store the intended configuration.
- Source of Truth Aggregation - Is a GraphQL query per device that creates a data structure used in the generation of configuration.
- Configuration Compliance - Is a Nornir process to run comparison of the actual (via backups) and intended (via Jinja file creation) CLI configurations.
Notice: The operator's of their own Nautobot instance are welcome to use any combination of these features. Though the appearance may seem like they are tightly coupled, this isn't actually the case. For example, one can obtain backup configurations from their current RANCID/Oxidized process and simply provide a Git Repo of the location of the backup configurations, and the compliance process would work the same way. Also, another user may only want to generate configurations, but not want to use other features, which is perfectly fine to do so.
Documentation
- Installation
- Quick Start Guide
- Navigating Overview
- Navigating Backup
- Navigating Intended
- Navigating SoTAgg
- Navigating Compliance
- FAQ
Screenshots
There are many features and capabilities the plugin provides into the Nautobot ecosystem. The following screenshots are intended to provide a quick visual overview of some of these features.
The golden configuration is driven by jobs that run a series of tasks and the result is captured in this overview.
The compliance report provides a high-level overview on the compliance of your network.
The compliance overview will provide a per device and feature overview on the compliance of your network devices.
Drilling into a specific device and feature, you can get an immediate detailed understanding of your device.
Contributing
Pull requests are welcomed and automatically built and tested against multiple versions of Python and Nautobot through TravisCI.
The project is packaged with a light development environment based on docker-compose
to help with the local development of the project and to run tests within TravisCI.
The project is following Network to Code software development guidelines and are leveraging the following:
- Black, Pylint, Bandit, flake8, and pydocstyle for Python linting and formatting.
- Django unit test to ensure the plugin is working properly.
CLI Helper Commands
The project features a CLI helper based on invoke to help setup the development environment. The commands are listed below in 3 categories:
dev environment
utility
testing
.
Each command can be executed with invoke <command>
. All commands support the arguments --nautobot-ver
and --python-ver
if you want to manually define the version of Python and Nautobot to use. Each command also has its own help invoke <command> --help
Note: to run the mysql (mariadb) development environment, set the environment variable as such
export NAUTOBOT_USE_MYSQL=1
.
Local Development Environment
build Build all docker images.
debug Start Nautobot and its dependencies in debug mode.
destroy Destroy all containers and volumes.
restart Restart Nautobot and its dependencies in detached mode.
start Start Nautobot and its dependencies in detached mode.
stop Stop Nautobot and its dependencies.
Utility
cli Launch a bash shell inside the running Nautobot container.
create-user Create a new user in django (default: admin), will prompt for password.
makemigrations Run Make Migration in Django.
nbshell Launch a nbshell session.
Testing
bandit Run bandit to validate basic static code security analysis.
black Run black to check that Python files adhere to its style standards.
flake8 Run flake8 to check that Python files adhere to its style standards.
pydocstyle Run pydocstyle to validate docstring formatting adheres to NTC defined standards.
pylint Run pylint code analysis.
tests Run all tests for this plugin.
unittest Run Django unit tests for the plugin.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nautobot-golden-config-0.9.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 015dbc5f5783fb4c4e9993301216440277d99d693b66fd1521cf1163f514ae41 |
|
MD5 | 5da67092c8b4bf83cbef248d1fdef022 |
|
BLAKE2b-256 | 10aabd221417ad4d28ad0e85d103ca105a3df5e97cef078ece46cfd8b9944768 |
Hashes for nautobot_golden_config-0.9.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f952c664dc0e0082cb4462434142aaa8a8ead46ee2ff9e8788bb1e7476dccfb |
|
MD5 | cfb4faee040712ef7351fb22685c13d9 |
|
BLAKE2b-256 | 7d78f4037b37340d96f8dfbc6bd6507b9250e765a8715822c2065a3f74f4294e |