Compare network device configuration files using contextual structures
Project description
NET-CONTEXTDIFF
This package contains two main elements used to compare text-based configuration files (or other files in simple text in a similar format) where they are structured using indented blocks of directives/commands:
-
a parser to read in configuration files and stored them in a dictionary -- the parser utilises the hierarchical nature of the configuration to understand that the same command name might mean different things in different contexts
-
a comparator that takes two configuration dictionaries (typically produced by the parser, above) - a source and a target configuration - and writes out a configuration file (or update command set) to transform the source configuration into the destination
Currently, only Cisco IOS configuration files can be parsed and compared, but the parser and comparators (and the wrapper command line tool) are written such that they should be extensible to new platforms (by creating new concrete classes from the abstract toplevel classes).
At the present time, only a subset of configuration directives for Cisco IOS are supported but more can be added, as required.
The scripts also support a system whereby rules can be included (rather like an access control list) to specify which elements of the configuration are included in the output. This allows known differences to be ignored.
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
File details
Details for the file net-contextdiff-0.7.3.tar.gz
.
File metadata
- Download URL: net-contextdiff-0.7.3.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6854a0339e954b9bb3fd8f557ce1a33e60c6aa8654b42ffe1a4c44ecaa34d4b5 |
|
MD5 | 4f267354ae572b71bbaf0e8c20620176 |
|
BLAKE2b-256 | 2af6ee39f06d83febeee0c665757233a39ba9d85fa709271ec99ba56af8f2558 |
File details
Details for the file net_contextdiff-0.7.3-py3-none-any.whl
.
File metadata
- Download URL: net_contextdiff-0.7.3-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 941b04172c10307a790629b3327b5f9c6ccf5b837f84bde83a62e8f88db87ada |
|
MD5 | e27cbe03c5ca2d8746c28b2a5714ee91 |
|
BLAKE2b-256 | 322214a842a05b18d700f36b1af4606c1a38e2ac0624f3daf6e7e65bd5fd205b |