Skip to main content

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, typically for network devices:

  • 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 - this uses a series of 'converters' to handle the difference for each configuration element (e.g. changing the description assigned to an interface)

Each of these are written as abstract base classes that can be inherited from to crete concrete classes for each platform, but the base processing of the parsing and comparing should be consistent, requiring only the specific commands to be handled.

Currently, Cisco IOS is the only concrete platform and only a subset so far (the comparator is still being tweaked to handle this all relatively straightforwardly, before all the commands are implemented). There are currently some odd commands and edge cases which are awkward to handle without some improvements to the core process.

The scripts also support a system whereby 'excludes' can be specified, to exclude those elements of the configuration dictionary which should not be compared, if a known difference exists that cannot be resolved, either as an interim divergence, or a permanent exception.

Metadata

Release files for net-contextdiff 0.15.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for net-contextdiff 0.15.12
File Size Uploaded
net-contextdiff-0.15.12.tar.gz 52.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for net-contextdiff 0.15.12
File Interpreter ABI Platform
net_contextdiff-0.15.12-py3-none-any.whl Python 3 none any Details

Total release size: 111.2 kB

Release files / net-contextdiff-0.15.12.tar.gz

Download URL net-contextdiff-0.15.12.tar.gz
Size 52.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e85fea36252d441de88fc5540d53ad5fc262164a4f88bb339c940684d964bce9
BLAKE2b-256 checksum
How to use checksums
924ede14b7bea859224c782f2ab293aaf2a4eb3a8f8beda50e7b7273a93764c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / net_contextdiff-0.15.12-py3-none-any.whl

Download URL net_contextdiff-0.15.12-py3-none-any.whl
Size 58.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73639f8d5508201149497adc22ea7e969ab9f2d3c86fe945c644a0134c0d323b
BLAKE2b-256 checksum
How to use checksums
d684bb2891ab20337dfc2332d8a79fd0f1b8b97003d0e378169ba830c1555e18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.15.12 This release

2 release files

0.15.5

2 release files

0.15.4

2 release files

0.15.3

2 release files

0.15.2

2 release files

0.15.1

2 release files

0.15

2 release files

0.14.5

2 release files

0.14.4

2 release files

0.14.3

2 release files

0.14.2

2 release files

0.14.1

2 release files

0.14

2 release files

0.13

2 release files

0.12

2 release files

0.11.9

2 release files

0.11.8

2 release files

0.11.7

2 release files

0.11.6

2 release files

0.11.5

2 release files

0.11.1

2 release files

0.11

2 release files

0.10

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9

2 release files

0.8

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page