Metadata-Version: 2.1
Name: cfgrep
Version: 1.0.2
Summary: cfgrep is Cisco Config Context-aware Check grep
Home-page: https://github.com/tk-hayashi/cfgrep
Author: toshayas
Author-email: toshayas@cisco.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: wheel
Requires-Dist: ciscoconfparse
Requires-Dist: netaddr
Requires-Dist: docopt

# cfgrep

cfgrep(c4grep, ccccgrep) is Cisco Config Context-aware Check grep

## Installing
```
pip install cfgrep
```

or

```
pip install wheel git+https://github.com/tk-hayashi/cfgrep
```

## Usage
Regular expressions can be used in PATTERN like grep.

```bash

 > cfgrep -h
Overview:
    cfgrep(c4grep, ccccgrep) is Cisco Config Context-aware Check grep

Usage:
    cfgrep <PATTERN> <FILE> [-i | --interface] [-b | --bgp] [-d | --description]
    cfgrep -h | --help

Options:
    -i, --interface    interface mode
    -b, --bgp          bgp mode
    -d, --description  to specify PATTERN by description
    -h, --help         display help
```

### options
See [examples-xr.md](https://github.com/tk-hayashi/cfgrep/blob/master/examples-xr.md) and [examples-ios.md](https://github.com/tk-hayashi/cfgrep/blob/master/examples-ios.md)  for details of options

|  option  |  description  |
| ---- | ---- |
|  -i  |  Interface mode. To display a config related to ipv4 and ipv6 address of the interfaces. |
|  -b  |  BGP mode. To display a config related to route-policy(route-map) and bgp-group of the neighbors. |
|  -d  |  Description mode. To use a indent parent of description as PATTERN. |

## Authors

* **Toshiki Hayashi** - *Initial work*

## License

This project is licensed under the Apache License - see the [LICENSE](https://github.com/tk-hayashi/cfgrep/blob/master/LICENSE) file for details


