17
0
Commit Graph

32 Commits

Author SHA256 Message Date
be654eb8a5 - update to 1.7.14:
* Allow `CiscoConfParse()` to parse an empty
    configuration command list i.e. `CiscoConfParse([])`; remove
    the `ValueError()` raised on parsing an empty config.
  * Re-implement and simplify
    `CiscoConfParse().sync_diff()` with `HDiff()`.
  * Rename variables in `HDiff().compress_dict_diffs()`.
  * Rename dict_line to line and add the command indent
  * Add 'parents' to `HDiff()` diff dicts and add parent
    line output in `sync_diff()`
  * Expand `CiscoConfParse()` test coverage for reading
    files from disk
  * Fix `CiscoConfParse().read_config_file()` recursive
    call in `read_config_file()`.
  * Fix `CiscoConfParse().read_config_file()` missing
    `open()` in `read_config_file()`.
  * Fix file-open test escapes associated with github issue
  * Fix `CiscoConfParse().read_config_file()` argument name
    test escape (ref github issue #262)
  * Improve file `open()` error handling.  NOTE:
    `FileNotFoundError()` is now raised for invalid file paths.
  * Improve edge case handling for Cisco IOS banner
    delimiters.
  * Remove `_validate_ConfigObjs()` and improve logic in
    `CiscoConfParse().__init__()`.
  * Revert back to using `read_config_file()` if the config
    is stored in a file.
  * Fix unit tests to work with version 1.7.8+
  * Streamline `CiscoConfParse().__init__()` logic and
    delegate `__init__()` tasks to dedicated methods.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=59
2023-02-10 12:29:47 +00:00
e9cafb04d2 - update to 1.7.7:
- Replace `assert isinstance()`, as requested in github issue #256
    - Remove test `ping` code from `Makefile`
    - Small code reorganization in `class CiscoConfParse()`
    - Move non-essential packages to requirements-dev.txt (github issue #258)
    - Edit in documentation style fixes recommended by `pydocstyle -e --convention=numpy <filename>`.
    - Convert some of the assertions that validated `CiscoConfParse()` method
      parameters and variables into if-statements for more idiomatic python.
    - Convert some of the clunky-python-syntax into more idiomatic python.
    - Rip out all `terraform` parsing attempts.
    - Update for CVE-2022-40898 in the python `wheel <= 0.38.0` package.
      - github issue #257 reported this issue.
      - Modified `requirements.txt` to manually upgrade `python`'s default `wheel` version to a patched version of `wheel`.
    - Move documentation package dependencies to `sphinx-doc/requirements.txt`
    - Add documentation build instructions to `README.md`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=57
2023-01-28 12:30:17 +00:00
ab34eb7a93 - update to 1.7.1:
* Improve config parsing code
  * Make ConfigList() more stable

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=55
2023-01-18 13:54:47 +00:00
6b14b91f4c - update to 1.7.0:
* Add deprecat dependency
  * Add more Makefile targets
  * Makefile will successfully ping to internet or fail
  * Update Makefile to delete poetry.lock file
  * Correct 'make ping' logic and other tricky Makefile syntax

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=53
2023-01-04 14:05:05 +00:00
21c32b778d Accepting request 1041156 from home:yarunachalam:branches:devel:languages:python
- Update to version 1.6.53 
  Released: 2022-11-18
  Summary:
  * Reformat pyproject.toml to be most compatible with 'pip install'
  * Several internal project-level optimizations...
  * git changes committed on 2022-11-09... somehow 1.6.53 wasn't pushed to pypi on 9-Nov-2022. It was pushed to pypi on 18-Nov-2022

OBS-URL: https://build.opensuse.org/request/show/1041156
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=51
2022-12-08 09:06:04 +00:00
d31fc4b86c Accepting request 1039433 from home:yarunachalam:branches:devel:languages:python
- Update to version 1.6.52
  Released: 2022-11-09
  Summary:
  * Fix Github Issue #254
- Update to version: 1.6.51
  Released: 2022-10-21
  Summary:
  * Add user and project parameters to dev_tools/git_helper.py.
    Modify the Makefile accordingly
  * Fix .delete(recurse=True) implementation (see Github Issue #253)
  * Fix incorrect debug level check in _bootstrap_from_text()
  * Add more debug logs... however, many methods still lack debug messages

OBS-URL: https://build.opensuse.org/request/show/1039433
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=49
2022-12-02 10:45:02 +00:00
7c9186d1b5 Accepting request 1031657 from home:yarunachalam:branches:devel:languages:python
- Update to version 1.6.50: 
  Released: 2022-10-21
  Summary:
   * Modify .github/workflows/tests.yml with improved yml
   * Enhance CiscoConfParse().repr() string output
   * Minor package documentation tweaks
- Update to version 1.6.49:
  * Adjust string strip() conditions on config lines in assign_parent_to_closing_braces()
- Update to version 1.6.48:
  * Add code to catch misconfigurations such as parsing a string instead of a list in ciscoconfparse.ConfigList(``)
  * Avoid problems with reading empty lines (see Github Issue #251)
- Update to version 1.6.47:
  * Add repo version management into the Makefile ('make bump-version-patch' / 'make bump-version-minor')
  * Add repo version management to 'dev_tools/git_helper.py'
  * Revise README_git_workflow.md to include more rebase and merge details

OBS-URL: https://build.opensuse.org/request/show/1031657
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=47
2022-10-28 22:28:46 +00:00
68325a2077 - Add missing runtime requirement
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=45
2022-10-21 09:54:48 +00:00
2ded87b299 Accepting request 1007995 from home:mnhauke
- Update to version 1.6.41
  * Modify `uncfgtext`.  Deprecate `add_uncfgtext()`
  * Add a dedicated bootstrap method (`_bootstrap_obj_init_junos()`)
    for parsing `syntax==junos`
  * Add `JunosCfgLine()`
  * Remove `NXOSConfigList()` and `ASAConfigList()`
  * Add test coverage for "parsing F5 configs as ios", "parsing F5
    configs as junos"
  * Add config diff infrastructure (preparing to make heavy changes
    to diffs)
  * Fix problems with `ip_factory()`
  * Add `_ip` property to `IPv4Obj()` and `IPv6Obj()`
  * Add support for IPv4 Mapped IPv6 Addresses
  * Fix `BaseCfgLine().has_child_with()` method
  * Make `ip_factory()` more resilient
  * Code cleanup
  * Fix IPv6 bug in `ip_factory()`
  * Enhance `regex_groups` on `find_object_branches`
  * Add regex match group support to `find_object_branches`
  * Ensure masklen and prefix are int objects for `IPv4Obj()` and
    `IPv6Obj()` network mask length
  * Add `ccp_util.ip_factory()`
  * Added a "disable" and "enable" command to `ccp_logger_control()`
  * Add `ccp_logger_control()`
  * Fix race-condition for `CiscoConfParse` kwarg in
    `IOSConfigList`, `NXOSConfigList`, and `ASAConfigList`
  * Add explicit configuration file encoding with default encoding
    from python's locale module
  * Remove colorama dependency.
- Drop patch:

OBS-URL: https://build.opensuse.org/request/show/1007995
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=43
2022-10-10 07:09:25 +00:00
c8bd5cd528 - add no2to3.patch for compatibility with newer setuptools
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=42
2022-03-01 09:39:41 +00:00
e4850df48f Accepting request 930538 from home:mnhauke
- Update to version 1.5.60
  * Fix race-condition for `CiscoConfParse` kwarg in IOSConfigList,
    NXOSConfigList, and ASAConfigList.
  * Add explicit configuration file encoding with default encoding
    from python's locale module.
  * Add tests to catch breakage similar to Github Issue #209.
  * Remove colorama dependency.

OBS-URL: https://build.opensuse.org/request/show/930538
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=41
2021-11-10 20:04:34 +00:00
a06f9f04d1 Accepting request 928832 from home:mnhauke
- Update to version 1.5.51
  * New release with modified copyrights
  * Fix typos and syntax
  * Fix insert_before() and insert_after(), update Copyrights
  * Expose a proxy function to call ipaddress.collapse_addresses()
  * More logging work... prepare for debugging overhaul.
  * Refine error logging in setup.py
  * Fix get_metadata() returned value in setup.py
  * Rework version.json to metadata.json

OBS-URL: https://build.opensuse.org/request/show/928832
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=40
2021-11-02 21:27:11 +00:00
5d37e85009 Accepting request 906038 from home:mnhauke
- Update to version 1.5.36
  * Fix git tags in Makefile
  * Add a helper-function: as_text_list(); improve performance of
    .delete()
  * Fix __int__() and __index__() on IPv4Obj() and IPv6Obj()
  * Enhance ccp_util.CiscoRange() to parse a wider variety of
    string inputs
  * Remove slow code from ccp_util.CiscoRange()
  * Make ccp_util.L4Object().__repr__() more friendly

OBS-URL: https://build.opensuse.org/request/show/906038
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=39
2021-07-13 09:01:17 +00:00
e685e33a22 Accepting request 866260 from home:bnavigator:branches:devel:languages:python
- Update to version 1.5.25
  * Fix Github Issue gh#mpenning/ciscoconfparse#195
  * merge PR gh#mpenning/ciscoconfparse#194
  * fix multiple unreported bugs in ccp_util.L4Object()
- Drop remove-mock.patch and test-lists.patch fixed upstream

OBS-URL: https://build.opensuse.org/request/show/866260
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=37
2021-01-23 22:23:42 +00:00
f13fe2d9d4 Accepting request 866051 from home:bnavigator:branches:devel:languages:python
- Update to 1.5.24
  * Fix Github Issue #178
- Changes for 1.5.23
  *  Prevent find_object_branches() from using None
- Changes for 1.5.22
  * Fix Github issue #186 (replace variables named input)
- Changes for 1.5.21
  * Fix Github issue #187
- Changes for 1.5.20
  * Fix Github issue #185
- Changes for 1.5.19
  * Add __ne__() support to IPv4Obj and IPv6Obj
- Changes for 1.5.18
  * Fix Github issue #180 - IPv4Obj() and IPv6Obj() cannot 
    use logical compare ops with certain Python objects
- Changes for 1.5.17
  * Fix Python 2.7 packaging
- Changes for 1.5.7
  * Revise IPv4Obj & IPv6Obj __lt__(), __gt__(), and 
    __contains__() methods (impacts sorting behavior); 
    reformatted documentation to latest numpydoc format.  
    Add version number as json data instead of raw text...
- Add remove-mock.patch -- gh#mpenning/ciscoconfparse#194
- Add test-lists.patch -- gh#mpenning/ciscoconfparse#195

OBS-URL: https://build.opensuse.org/request/show/866051
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=35
2021-01-22 15:42:44 +00:00
Tomáš Chvátal
31d22fd84f Accepting request 817501 from home:mnhauke:network:automation
- Update to version 1.5.6
  * Improve find_object_branches() speed

OBS-URL: https://build.opensuse.org/request/show/817501
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=33
2020-06-28 11:03:49 +00:00
Tomáš Chvátal
9cb9ff39e1 Accepting request 814323 from home:mnhauke
- Update to version 1.5.5
  * Beta-test new function: find_object_branches()
- Update to version 1.5.4
  * Modify IPv4Obj().__add__() and IPv6Obj().__add__() (and __sub__())
    methods return IPv4Obj()/IPv6Obj() objects.
  * Add support for int(), bin() and hex() on the IPv4Obj() and IPv6Obj()

OBS-URL: https://build.opensuse.org/request/show/814323
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=31
2020-06-14 07:06:02 +00:00
Tomáš Chvátal
a2674a04a0 - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=29
2020-04-23 11:24:14 +00:00
Tomáš Chvátal
38f2cd16e2 Accepting request 793428 from home:mnhauke:network:automation
- Update to version 1.5.3
  * Fix IPv6Obj().packed and IPv6Obj().exploded
  * add IPv4Obj().packed and IPv4Obj().exploded
- Update to version 1.5.2
  * Add __add__() and __sub__() to IPv4Obj() and IPv6Obj();
  * remove use of IPv6Obj().broadcast in IPv6Obj().__contains__()

OBS-URL: https://build.opensuse.org/request/show/793428
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=27
2020-04-13 08:37:31 +00:00
cf31ce7405 Accepting request 779662 from home:mnhauke
- Update to version 1.5.1
  * Remove embedded junos debugging
- Update to version 1.5.0
  * Complete rewrite of junos parser (fix Github issue #70)
  * deprecate support for Python 3.4

OBS-URL: https://build.opensuse.org/request/show/779662
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=25
2020-02-27 06:17:50 +00:00
Tomáš Chvátal
f6903d8875 Accepting request 754503 from home:mnhauke:network:automation
- Update to version 1.4.11
  * Explicitly close() open filehandles

OBS-URL: https://build.opensuse.org/request/show/754503
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=23
2019-12-05 20:33:40 +00:00
Todd R
c8ff8e4645 Accepting request 750854 from home:mnhauke:network:automation
- Update to version 1.4.10
  * Add support for parsing pathlib.Path objects which contain a
    configuration

OBS-URL: https://build.opensuse.org/request/show/750854
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=21
2019-11-25 19:42:57 +00:00
Tomáš Chvátal
6e1f4d1381 Accepting request 750385 from home:mnhauke:network:automation
- Update to version 1.4.9
  * Add .as_cidr_net and .as_cidr_addr on IPv4Obj and IPv6Obj
  * Merge Github PR #168; rename in_portchannel and is_portchannel

OBS-URL: https://build.opensuse.org/request/show/750385
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=19
2019-11-22 20:46:23 +00:00
Tomáš Chvátal
cb04806c83 - Update to 1.4.7:
* various small fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=17
2019-09-26 10:39:33 +00:00
Tomáš Chvátal
be60be1967 - Update to 1.4.5:
* distribute tests
  * various fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=16
2019-09-13 11:01:46 +00:00
Tomáš Chvátal
ac6d4e5ffb Accepting request 720158 from home:pgajdos
- version update to 1.4.1
  * Fix Github issue #141; NOTE - This will break parsing helper-addresses under factory=True.  If you use this feature, please migrate your scripts to the new format
  * Implement re_search_children() directly on the CiscoConfParse() object
  *  Fix Github issue #158, *KEYWORD CHANGE WARNING:* some methods formrely used a keyword called 'all_children'.  The new syntax is 'recurse' (ref: Github issue #159)

OBS-URL: https://build.opensuse.org/request/show/720158
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=14
2019-08-01 09:01:25 +00:00
Tomáš Chvátal
d6b8481d43 - Update to 1.3.32:
* No good changelog
- Remove unused patch ciscoconfparse-1.2.40-fix-tests.patch

- Update to 1.3.30:
  * Fix bugs related to Python3 (Github issue #117)
  * Add IP helper-address parsing in models_cisco.py
  * Revert universal wheel packages (universal=0)
  * Build universal wheel packages
  * Build improvements - ref Github issue #127, #128
  * Another swing at Github issue #127
  * Rollback fix for Github issue #127
  * Attempt to fix Github issue #127
  * Fix Github issue #124-126 and Github issue #110
  * Fix Github issue #121 and Github issue #123
  * Fix Github issue #114 (Py3.5 requires different open() syntax)
  * Fix Github issue #111 (banner parsing broken in some cases)
  * Add * to MANIFEST.in
  * Attempt to resolve Github issue #106
  * Add dns_query() zone transfer as text

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=12
2019-03-26 13:29:43 +00:00
Tomáš Chvátal
56272769d4 Accepting request 628222 from home:jengelh:branches:devel:languages:python
- Use noun phrase in summary.

OBS-URL: https://build.opensuse.org/request/show/628222
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=10
2018-08-08 17:02:49 +00:00
8de0bb51e9 Accepting request 611172 from devel:languages:python:singlespec-staging
- Uprgade to version 1.3.15
    * Many trivial bug fixes, see CHANGES
- Renamed skip-setuptools-hg-require.patch to
  ciscoconfparse-1.2.40-fix-tests.patch

- singlespec auto-conversion

OBS-URL: https://build.opensuse.org/request/show/611172
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=7
2018-05-22 08:55:18 +00:00
91749083d9 Accepting request 434003 from home:mnhauke
- Update to version 1.2.40
  * Fix Github issue #44 (Could not parse 'ipv6 router ospf 6').
  * Modify default value for access_vlan.
  * Add new is_portchannel property.
  * Update copyright dates.
  * Remove OSX from test matrix
- Fix source url

OBS-URL: https://build.opensuse.org/request/show/434003
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=5
2016-10-10 07:32:06 +00:00
c3e0134712 - fix license
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=3
2016-03-13 21:24:44 +00:00
15f5a6aa1f Accepting request 357836 from home:tbechtold:branches:devel:languages:python
Initial packaging

OBS-URL: https://build.opensuse.org/request/show/357836
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ciscoconfparse?expand=0&rev=1
2016-02-05 09:04:07 +00:00