Ciscoconfparse

Latest version: v1.9.50

Safety actively analyzes 640965 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 11 of 59

1.7.17

- Released: 2023-02-17
- Summary:
- Simplify `find_object_branches()`
- Remove unused test fixtures and imports
- As part of Github issue 264 (Remove duplicated obj init code from `CiscoConfParse()._bootstrap_obj_init_foo()`), also remove a duplicate method: `ConfigList()._build_cfgobj_from_text()`
- As part of Github issue 265, fix a broken `loguru` parameter: change it from `allow_enqueue` to `enqueue`
- Close Github issue 266 as wont-fix: make `BaseCfgLine().calculate_line_id()` hash comments / whitespace
- Reformat `ciscoconfparse/ciscoconfparse.py` and `ciscoconfparse/ccp_abc.py` with black
- Add new `as_dict_diff` attribute (used by `HDiff()`) on `BaseCfgLine()`.
- Add more debugs in `HDiff().compress_dict_diffs()`.
- Raise an explicit `NotImplementedError` in `HDiff().sort_lines()`
- Remove manual prepends from `HDiff()` and `CiscoConfParse().sync_diff()`
- Remove hard-coded blank-line handling which was based on the value of the `HDiff()` `syntax` parameter
- Add `ignore_blank_lines` parameter to `HDiff()` (to mirror the same parameter in `CiscoConfParse()`)
- Remove the `consider_whitespace` parameter from `HDiff().build_diff_obj_list()`
- Change `CiscoConfParse()._list` to `CiscoConfParse().ConfigObjs`
- Expand test coverage to test parsing with and without blank lines in the input config.
- Add more test cases to check blank line parsing while using any valid ccp syntax
- Update documentation

1.7.16

- Released: 2023-02-13
- Summary:
- Add initial support for `CiscoConfParse()` object instance support in `HDiff()`
- Add `HDiff()` documentation
- Convert `diff_word` and `diff_side` `HDiff()` attributes to `HDiff()` getter / setter methods
- Improve `BaseCfgLine()` initialization
- Improve `BaseCfgLine()` attribute handling: `.text`, `.indent`
- Remove loop in `testValues_find_children()` to simplify test flow.
- Ensured that all comments are their own parents - comments can NOT be children of a parent
- Add `ccp_util.fix_repeated_words()`
- Change `allow_enqueue` parameter to `enqueue` in `ccp_logger_control()`. `allow_enqueue` is not a valid `loguru` parameter name.

1.7.15

- Released: 2023-02-10
- Summary:
- Streamline `_bootstrap_from_text()` code.
- Extract common code into `_build_banner_re_ios()` (for nxos and ios)
- Extract common object init code from `CiscoConfParse()._bootstrap_obj_init_foo()` (where foo = asa, ios, nxos and junos) into `_build_cfgobj_from_text()`.
- Remove the unused `output_format` parameter from `HDiff()`
- Add `HDiff()` docstrings
- Resolved Github issue 262: bad function argument + infinite recursion problem
- Resolved Github issue 263: Remove duplicated code from `CiscoConfParse()._bootstrap_from_text()`

1.7.14

- Released: 2023-02-06
- Summary:
- 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 rename dict_line to line and add the command indent rename dict_line to line and add the command indent in `CiscoConfParse().sync_diff()`
- Add 'parents' to `HDiff()` diff dicts and add parent line output in `sync_diff()`
- Expand `CiscoConfParse()` test coverage for reading files from disk

1.7.13

- Released: 2023-01-31
- Summary:
- 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 262.

1.7.12

- Released: 2023-01-31
- Summary:
- Fix `CiscoConfParse().read_config_file()` argument name test escape (ref github issue 262)

Page 11 of 59

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.