asimtote


Nameasimtote JSON
Version 0.16.14 PyPI version JSON
download
home_pagehttps://gitlab.developers.cam.ac.uk/uis/netsys/udn/asimtote
SummaryCompare network device configuration files using contextual structures
upload_time2024-03-28 18:27:41
maintainerNone
docs_urlNone
authorRobert Franklin
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ASIMTOTE
========

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.


THE NAME
--------

This package was formerly known as net-contextdiff but has been renamed as it
is expected to drop the indented configuration difference mechansim (still
using context, but not via indenting).

The new name 'asimtote' is a backronym for something like 'Autonomous System
Internetwork Management ...' but the rest has not yet been completed.  It's
similarity to 'asymptote' is deliberate as it aims to get a configuration into
a desired state but will probably never ever get there.


FUTURE DEVELOPMENTS
-------------------

Longer term, this script may be made unnecessary by other tools but, if it
remains, will probably be parsing configurations via something like REST and
JSON, rather than by reading legacy text configuration files.  It would also be
making changes using similar calls rather than generating legacy text
conversions.  The problem of making changes in the correct order and committing
them may still remain, though.

It would also be desirable to separate the parser as this could be useful
elsewhere.  At the moment, however, it's so intertwined with the converter this
would be tedious to maintain and keep in sync.  It should probably be made
easily usable as a separate component, however.

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.developers.cam.ac.uk/uis/netsys/udn/asimtote",
    "name": "asimtote",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Robert Franklin",
    "author_email": "rcf34@cam.ac.uk",
    "download_url": "https://files.pythonhosted.org/packages/8e/65/1ae617b44fed490e3b14b8adc098b7a2ddbdf06f85105a9f4883a8e60a98/asimtote-0.16.14.tar.gz",
    "platform": null,
    "description": "ASIMTOTE\n========\n\nThis package contains two main elements used to compare text-based\nconfiguration files (or other files in simple text in a similar format) where\nthey are structured using indented blocks of directives/commands, typically for\nnetwork devices:\n\n* a parser to read in configuration files and stored them in a dictionary --\n  the parser utilises the hierarchical nature of the configuration to\n  understand that the same command name might mean different things in\n  different contexts\n\n* a comparator that takes two configuration dictionaries (typically produced by\n  the parser, above) - a source and a target configuration - and writes out\n  a configuration file (or update command set) to transform the source\n  configuration into the destination - this uses a series of 'converters' to\n  handle the difference for each configuration element (e.g. changing the\n  description assigned to an interface)\n\nEach of these are written as abstract base classes that can be inherited from\nto crete concrete classes for each platform, but the base processing of the\nparsing and comparing should be consistent, requiring only the specific\ncommands to be handled.\n\nCurrently, Cisco IOS is the only concrete platform and only a subset so far\n(the comparator is still being tweaked to handle this all relatively\nstraightforwardly, before all the commands are implemented).  There are\ncurrently some odd commands and edge cases which are awkward to handle without\nsome improvements to the core process.\n\nThe scripts also support a system whereby 'excludes' can be specified, to\nexclude those elements of the configuration dictionary which should not be\ncompared, if a known difference exists that cannot be resolved, either as an\ninterim divergence, or a permanent exception.\n\n\nTHE NAME\n--------\n\nThis package was formerly known as net-contextdiff but has been renamed as it\nis expected to drop the indented configuration difference mechansim (still\nusing context, but not via indenting).\n\nThe new name 'asimtote' is a backronym for something like 'Autonomous System\nInternetwork Management ...' but the rest has not yet been completed.  It's\nsimilarity to 'asymptote' is deliberate as it aims to get a configuration into\na desired state but will probably never ever get there.\n\n\nFUTURE DEVELOPMENTS\n-------------------\n\nLonger term, this script may be made unnecessary by other tools but, if it\nremains, will probably be parsing configurations via something like REST and\nJSON, rather than by reading legacy text configuration files.  It would also be\nmaking changes using similar calls rather than generating legacy text\nconversions.  The problem of making changes in the correct order and committing\nthem may still remain, though.\n\nIt would also be desirable to separate the parser as this could be useful\nelsewhere.  At the moment, however, it's so intertwined with the converter this\nwould be tedious to maintain and keep in sync.  It should probably be made\neasily usable as a separate component, however.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Compare network device configuration files using contextual structures",
    "version": "0.16.14",
    "project_urls": {
        "Homepage": "https://gitlab.developers.cam.ac.uk/uis/netsys/udn/asimtote"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "95392aa48db63efefbd251f587442e673b00957ef9ab43bc25f10e1a555edd0f",
                "md5": "ef1982db4032593cbec31274ca72624e",
                "sha256": "6815e4172906d0e65674e7dd5dea8b82d35272abc6b0a4cacd0171d69f61842b"
            },
            "downloads": -1,
            "filename": "asimtote-0.16.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ef1982db4032593cbec31274ca72624e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 73970,
            "upload_time": "2024-03-28T18:27:39",
            "upload_time_iso_8601": "2024-03-28T18:27:39.399306Z",
            "url": "https://files.pythonhosted.org/packages/95/39/2aa48db63efefbd251f587442e673b00957ef9ab43bc25f10e1a555edd0f/asimtote-0.16.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8e651ae617b44fed490e3b14b8adc098b7a2ddbdf06f85105a9f4883a8e60a98",
                "md5": "4484104791c8107f2527c5458e111ace",
                "sha256": "987d9d2a7a08904e617141ca2dd8078f6acb0c4a6d99940567d873376657304c"
            },
            "downloads": -1,
            "filename": "asimtote-0.16.14.tar.gz",
            "has_sig": false,
            "md5_digest": "4484104791c8107f2527c5458e111ace",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 94199,
            "upload_time": "2024-03-28T18:27:41",
            "upload_time_iso_8601": "2024-03-28T18:27:41.977776Z",
            "url": "https://files.pythonhosted.org/packages/8e/65/1ae617b44fed490e3b14b8adc098b7a2ddbdf06f85105a9f4883a8e60a98/asimtote-0.16.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-28 18:27:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "asimtote"
}
        
Elapsed time: 0.20369s