Skip to main content

Parse, Query, Build, and Modify Cisco IOS-style configurations

Project description

DOCS

The latest copy of the docs are archived here: http://www.pennington.net/py/ciscoconfparse/

FAQ

Q1: Is there a way to use this module with perl? A1: Yes, I do this myself. Install the python package as you normally would and import it into perl with Inline.pm and Inline::Python from CPAN.

Q2: When I use find_children(“interface GigabitEthernet3/2”), I’m getting all interfaces beginning with 3/2, including 3/21, 3/22, 3/23 and 3/24. How can I limit my results? A2. There are two ways… the simplest is to use the ‘exactmatch’ option… find_children(“interface GigabitEthernet3/2”, exactmatch=True). Another way is to utilize regex expansion that is native to many methods… find_children(“interface GigabitEthernet3/2$”)

AUTHOR

David Michael Pennington

THANKS

Thanks to David Muir Sharnoff for his suggestion about making a special case for IOS banners. Thanks to Alan Cownie for his API suggestions. Thanks to everyone in advance for their bug reports and patience. Sola Dei Gloria.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ciscoconfparse-0.9.12.tar.gz (60.2 kB view details)

Uploaded Source

File details

Details for the file ciscoconfparse-0.9.12.tar.gz.

File metadata

File hashes

Hashes for ciscoconfparse-0.9.12.tar.gz
Algorithm Hash digest
SHA256 c26b0d2192937f3f5325412c7a2b3971ed2b7671e1c2cb04c66af79be5ff0de5
MD5 b149d25c5d90e1d71220c1c00d8e2d6d
BLAKE2b-256 bb627e705c50b2d1049c11100c03ae93e937bff670b351e8a4e2ea1c6f7a0daa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page