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.5.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

net_contextdiff-0.7.5-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: net-contextdiff-0.7.5.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.2

File hashes

Hashes for net-contextdiff-0.7.5.tar.gz
Algorithm Hash digest
SHA256 f6767cd2fd46bc9e4e39206c272692126efebf09c2d12d1605e254988e240a2c
MD5 da324c08137338f8c4384e05051af02a
BLAKE2b-256 b883c8ef35d07e54cd096bdb784ed2b77f7c3708bc485112917f430eaad96556

See more details on using hashes here.

File details

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

File metadata

  • Download URL: net_contextdiff-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.2

File hashes

Hashes for net_contextdiff-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 88d6c253496134abcc328b138c351b726a94a64b5f4008bc1be84ceb6b6ad625
MD5 37b0ff73b56b9cee2369d5d5facd1db5
BLAKE2b-256 806d1ab90c58f8120e3255a3306fe55a153627eb83bd78451117077fd2d758dc

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