Parse through Cisco IOS-style configurations and retrieve portions of the config using a variety of query methods
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$”)
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
File details
Details for the file ciscoconfparse-0.9.8.tar.gz.
File metadata
- Download URL: ciscoconfparse-0.9.8.tar.gz
- Upload date:
- Size: 51.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b95dea2854eebd0d664379741d2af7647505a38efe1678d226b9ad618811187b
|
|
| MD5 |
9d1e61a62d4192290f1ad6c38efb9207
|
|
| BLAKE2b-256 |
a4db436d618b1337ce05a75aa36a90dea58f640f0c3f5ca3b6913d4840482f13
|