Port details |
- py-ciscoconfparse Parse, audit, query, build and modify Cisco IOS-style configurations
- 1.9.28 net-mgmt
=4 1.9.28Version of this port present on the latest quarterly branch. - Maintainer: kai@FreeBSD.org
 - Port Added: 2018-03-25 04:59:23
- Last Update: 2023-11-11 11:45:29
- Commit Hash: 152c3f6
- People watching this port, also watch:: freeradius3, ntraceroute, burp, check_ssl_cert, mblaze
- Also Listed In: python
- License: GPLv3+
- WWW:
- http://www.pennington.net/py/ciscoconfparse/
- Description:
- ciscoconfparse parses through Cisco IOS-style configurations. It can:
- Audit existing router / switch / firewall / wlc configurations
- Retrieve portions of the configuration
- Modify existing configurations
- Build new configurations
It can also parse other vendor configurations:
- Juniper Networks JunOS
- F5 Networks configurations
- Palo Alto Networks Firewall configurations
The module handles anything that has a Cisco IOS style of configuration, e.g.:
- Cisco IOS/IOS-XE/IOS-XR/Aironet/ASA/CatOS/Nexus
- Arista EOS
- Brocade
- HP Switches
- Force 10 Switches
- Dell PowerConnect Switches
- Enterasys, Extreme Networks, Screenos
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}ciscoconfparse>0:net-mgmt/py-ciscoconfparse@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/net-mgmt/py-ciscoconfparse/ && make install clean
- To add the package, run one of these commands:
- pkg install net-mgmt/py-ciscoconfparse
- pkg install py39-ciscoconfparse
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-ciscoconfparse listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-ciscoconfparse
- Package flavors (<flavor>: <package>)
- py39: py39-ciscoconfparse
- distinfo:
- TIMESTAMP = 1699694157
SHA256 (ciscoconfparse-1.9.28.tar.gz) = fdb64c57c4c10735a79e12bcb672237362edc83e0836f0f5ae5bb6188a9ead11
SIZE (ciscoconfparse-1.9.28.tar.gz) = 480572
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-poetry-core>=1.6.1 : devel/py-poetry-core@py39
- py39-packaging>=23.0 : devel/py-packaging@py39
- py39-wheel>=0.38.4 : devel/py-wheel@py39
- python3.9 : lang/python39
- py39-build>=0 : devel/py-build@py39
- py39-installer>=0 : devel/py-installer@py39
- Test dependencies:
-
- py39-pytest>=7,1 : devel/py-pytest@py39
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-deprecated>=1.2.14 : devel/py-deprecated@py39
- py39-dnspython>=2.4.2 : dns/py-dnspython@py39
- py39-loguru>=0.7.2 : devel/py-loguru@py39
- py39-passlib>=1.7.4 : security/py-passlib@py39
- py39-toml>=0.10.2 : textproc/py-toml@py39
- python3.9 : lang/python39
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- net-mgmt_py-ciscoconfparse
- USES:
- python
- pkg-message:
- If upgrading from < 1.4.3:
- Since the 1.4.2 release the behavior of "ip_helper_addresses()" function has
changed. Parsing helper-addresses under factory=True won't work anymore as
expected.
Also the method named "find_objects_w_all_children()" has changed since the
1.4.0 release. Former releases used the keyword "all_children" which has been
replaced with "recurse".
If you use one of those features mentioned above, please migrate your scripts
to the new format.
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
1.9.28 11 Nov 2023 11:45:29
    |
Kai Knoblich (kai)  |
net-mgmt/py-ciscoconfparse: Update to 1.9.28
Changelog since 1.9.16:
https://github.com/mpenning/ciscoconfparse/compare/1.9.16...1.9.28 |
1.9.16 31 Oct 2023 12:33:15
    |
Kai Knoblich (kai)  |
net-mgmt/py-ciscoconfparse: Update to 1.9.16
* Switch to PEP517 build framework.
* Convert to USE_PYTHON=pytest to simplify Makefile.
* Remove no longer required patch for newer releases of setuptools.
Changelog since 1.5.51:
https://github.com/mpenning/ciscoconfparse/compare/v1.5.51...1.9.16 |
1.5.51 27 Jun 2023 19:34:34
    |
Rene Ladan (rene)  |
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568> |
1.5.51 11 Jan 2023 15:58:34
    |
Dmitry Marakasov (amdmi3)  |
*/*: rename CHEESESHOP to PYPI in MASTER_SITES
PR: 267994
Differential revision: D37518
Approved by: bapt |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
1.5.51 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
1.5.51 07 Mar 2022 18:13:20
    |
Po-Chuan Hsieh (sunpoet)  |
net-mgmt/py-ciscoconfparse: Fix build with setuptools 58.0.0+
With hat: python |
1.5.51 03 Nov 2021 06:47:18
    |
Kai Knoblich (kai)  |
net-mgmt/py-ciscoconfparse: Update to 1.5.51
* Limit the Python version to 3.7+ due devel/py-loguru, which requires
Python 3.7+ as well.
Changelog since 1.5.30:
https://github.com/mpenning/ciscoconfparse/compare/v1.5.30...v1.5.51
MFH: No (contains mostly feature additions) |
1.5.30 07 Apr 2021 08:09:01
    |
Mathieu Arnold (mat)  |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
1.5.30 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
1.5.30 24 Mar 2021 14:07:45
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.5.30
Changelog:
* Add helper-function: "as_text_list()", improve performance of ".delete()"
* Fix "__int__()" and "__index__()" on "IPv4Obj()" and "IPv6Obj()" |
1.5.28 25 Jan 2021 15:48:25
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.5.28
Changelog since 1.5.24:
* 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
* Use "unittest.mock" for tests if available
* Fix the issue with the "L4Object_asa_{lt01,lt02,range}" tests
* Fix multiple unreported bugs in "ccp_util.L4Object()" |
1.5.24 11 Jan 2021 11:13:55
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.5.24
* Remove now obsolete conditionals for Python 2.7 while I'm here.
Changelog:
* Prevent "find_object_branches()" method from using any branches with
"None" in the value. |
1.5.22 28 Dec 2020 23:02:15
  |
antoine  |
Drop python 2.7 support from a few ports
With hat: portmgr |
1.5.22 09 Dec 2020 11:14:18
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.5.22
Changelog since 1.5.20:
* Avoid overwrite of standard function "input" in "parse_line_braces()"
* Fix references to non-existent "IOSConfigLine" |
1.5.20 30 Nov 2020 12:55:40
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.15.20
Changelog:
* Add warnings for unsupported features in conjunction with JunOS. |
1.5.19 20 Nov 2020 08:50:48
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.5.19
Changelog since 1.5.6:
* Fix "IPv4Obj" and "IPv6Obj" which cannot use logical compare ops with
certain Python objects.
* Fix Python 2.7 packaging.
* Revise some methods of "IPv4Obj" and "IPv6Obj" which impacts the sorting
behavior. |
1.5.6 14 Jul 2020 06:34:47
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.5.6
Changelog since 1.5.4:
* Improve "find_object_branches()" speed; reformat with black
* Beta-test new function: "find_object_branches()" |
1.5.4 15 May 2020 07:17:16
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.5.4
Changelog since 1.5.1:
* Introduction of new methods to the IPv4Obj()/IPv6Obj() classes and changed
return values of those.
* Add support for int(), bin() and hex() on the IPv4Obj() and IPv6Obj()
classes.
* Fix "packed" and "exploded" methods of IPv6Obj(), add "IPv4Obj().packed"
and "IPv4Obj().exploded" |
1.5.1 30 Mar 2020 15:26:07
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.5.1
Changelog since 1.4.11:
* Remove embedded JunOS debugging
* Complete rewrite of JunOS parser and deprecate support for Python 3.4 |
1.4.11 11 Dec 2019 19:27:55
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.4.11
Changelog:
* Explicitly close() open filehandles
MFH: 2019Q4 |
1.4.10 06 Dec 2019 15:30:41
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.4.10
Changelog since 1.4.7:
* Add support for parsing "pathlib.Path" objects which contain a
configuration
* Add ".as_cidr_net" and ".as_cidr_addr" on "IPv4Obj" and "IPv6Obj"
* Add support for name and track on IPv6 routes |
1.4.7 12 Sep 2019 10:28:26
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.4.7
Changelog since 1.4.5:
* Add support for NXOS "vrf" with "dhcp helper-address"
* Add support for NXOS "dhcp-helper-address" (with factory=True) |
1.4.5 08 Sep 2019 11:59:45
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.4.5
Changelog since 1.4.3:
* Add support for NXOS in "find_interface_objects()" method
* Fix "append_line()" function when parsing ASA configurations
* Fix broken regular expressions in "has_ip_pim()" methods |
1.4.3 24 Aug 2019 21:14:24
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.4.3
* Add "do-test" target to make future QA easier
Changelog since 1.3.43:
* Add parser for various NXOS features
* Fix issue with "ip_helper_adddresses" function that wasn't able to handle
'global' helpers
* Implement "re_search_children()" directly on the "CiscoConfParse()" object
* Fix NXOS HRSP issue with "has_ip_hsrp" function |
1.3.43 15 Jul 2019 10:03:59
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.3.43
Changelog:
* Fix possible syntax error "from __future__ imports must occur at the
beginning of the file" in some build environments. |
1.3.42 29 Jun 2019 16:25:14
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.3.42
Changelog since 1.3.39:
* HRSP timers now return a float (used to return int).
* NXOS support for HSRP. |
1.3.39 06 Jun 2019 05:02:17
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.3.39
Changelog since 1.3.37:
* Allow re_match_iter_typed() to use default=True
* Add CiscoConfParse().re_match_iter_typed() |
1.3.37 18 May 2019 12:59:16
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.3.37
Changelog:
* Further improve support for Python 3 when using in virtual environments in
conjunction with pip. |
1.3.36 26 Apr 2019 22:24:32
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.3.36
Changes since 1.3.33:
* Refine JunOS parsing
* Refine IOS macro parsing
* Add support for IOS macros
Approved by: mentors (implicit) |
1.3.33 10 Apr 2019 07:37:14
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.3.33
Changelog:
* Fix bug with parse.delete_lines() where only every second sequential match
was deleted.
Approved by: mentors (implicit) |
1.3.32 25 Mar 2019 15:59:43
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.3.32
Changelog:
* Fix CiscoRange() should automatically prune duplicates added to the list
* Fix ciscoconfparse.ccp_util.CiscoRange() should support emtpy ranges
* Fix ciscoconfparse.models_cisco needs an explicit MAX_VLAN constant
* Fix IOSCfgLine().re_match_typed() doesn't have an 'untyped_default'
boolean
* Fix trunk_vlans_allowed returns only two lines
Approved by: miwi (mentor)
Differential Revision: https://reviews.freebsd.org/D19684 |
1.3.30 24 Feb 2019 20:53:10
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.3.30
Changelog:
* Fix unicode cast to be compatible with Python 3
* Fix collections import in Python 3
* Fix bug exposed in Python 3.7
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D19313 |
1.3.29 08 Feb 2019 18:32:53
  |
kai  |
net-mgmt/py-ciscoconfparse: Update to 1.3.29
Notable changes since 1.3.20:
* Fix open() syntax with Python 3.5
* Add IP helper-address parsing in models_cisco.py
Reviewed by: tcberner (mentor)
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D19121 |
1.3.20 01 Feb 2019 18:55:18
  |
kai  |
Change my maintainer email address to my new one at the FreeBSD project.
Reviewed by: miwi (mentor)
Approved by: miwi (mentor)
Differential Revision: https://reviews.freebsd.org/D19050 |
1.3.20 09 Jul 2018 18:36:11
  |
miwi  |
- Update to 1.3.20
PR: 228844
Submitted by: maintainer
Sponsored by: iXsystems Inc. |
1.3.15 26 Apr 2018 00:29:10
  |
dbaio  |
net-mgmt/py-ciscoconfparse: Update to 1.3.15
PR: 227690
Submitted by: Kai Knoblich <freebsd_ports@k-worx.org> (maintainer) |
1.3.12 17 Apr 2018 13:34:50
  |
krion  |
Update to 1.3.12
PR: 227575
Submitted by: maintainer |
1.3.11 02 Apr 2018 00:03:19
  |
dbaio  |
net-mgmt/py-ciscoconfparse: Update to 1.3.11
Dependency devel/py-ipaddr is only necessary with Python 2.
While here, update LICENSE.
PR: 227162
Submitted by: Kai <freebsd_ports@k-worx.org> (maintainer) |
1.3.10 25 Mar 2018 04:56:13
  |
yuri  |
New port: net-mgmt/py-ciscoconfparse: Parse, audit, query, build and modify
Cisco IOS-style configurations
PR: 226901
Submitted by: Kai <freebsd_ports@k-worx.org> |