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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b624c7c8aacd9028ab57cec85bed76a4ba7777bba168d9a45f254157d805b79 |
|
MD5 | 4f29bf49a06af498faf83307118d6624 |
|
BLAKE2b-256 | a6cc5e21ca2899b6f2ff6f005346ead19aa93bbad7e0bcb2b7357b7b35b6adf6 |
Hashes for nautobot_golden_config-0.9.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9031be96dcf34d4b4cd1044c19ec19611fc175bc3a752a4f0e98936cd7e76923 |
|
MD5 | 58c0fdfbdadf7a577ac9df16f123c913 |
|
BLAKE2b-256 | 0a7656be49413f9c916d08dd5ae1fba21a5fa11b5781e4d172985780199a2862 |