Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

net-contextdiff-0.7.2.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

net_contextdiff-0.7.2-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file net-contextdiff-0.7.2.tar.gz.

File metadata

  • Download URL: net-contextdiff-0.7.2.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for net-contextdiff-0.7.2.tar.gz
Algorithm Hash digest
SHA256 e4e7950c1b10684c9ab0d9ba3f90bcd41cacf450529d6a34ab3c77fea6f8bc9d
MD5 288130fcd41174275ee1b7a4271cf3c9
BLAKE2b-256 e4e6bc7a93fd876bdae57b62c4a8cf10355018f81a61bfb6ea3c9e32e2487a20

See more details on using hashes here.

File details

Details for the file net_contextdiff-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: net_contextdiff-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for net_contextdiff-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cadb00e42ecad9883c558f86880ca57a38eb85a1f1c31b23d606c8efc3069097
MD5 91fc5fd89a3b59be390ccf93908b07f0
BLAKE2b-256 6c8d2a4187f1cca2ea7a58a40e9a65961ff4c519e97613846ec48266d636dd3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page