Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pycoder2014/CiscoAclUpdate
Script to update ACL on Cisco IOS network devices
https://github.com/pycoder2014/CiscoAclUpdate
Last synced: 5 days ago
JSON representation
Script to update ACL on Cisco IOS network devices
- Host: GitHub
- URL: https://github.com/pycoder2014/CiscoAclUpdate
- Owner: pycoder2014
- License: apache-2.0
- Created: 2021-04-17T23:37:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-18T03:52:09.000Z (over 3 years ago)
- Last Synced: 2024-08-01T19:50:56.972Z (3 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CiscoAclUpdate
## Overview
Script to update ACL on Cisco IOS devices.
The script read the input from the params yaml file, connects to each of the listed devices then update the device ACL. Pre and post-change configs for each device are saved to the config folder.
## Installation
```console
git clone https://github.com/pycoder2014/CiscoAclUpdate.git
cd CiscoAclUpdate
pip install -r requirements.txt```
## Usage
Add parameters to the (params.yaml) yaml file.
```yaml
hosts:
- 192.168.101.10access-list:
access-list 10:
- access-list 10 permit 192.168.101.0 0.0.0.255
- access-list 10 permit 192.168.102.0 0.0.0.255
- access-list 10 permit 192.168.103.0 0.0.0.255```
Execute script.
```console
> python .\script.pyUsername : user1
Password :
Connecting to 192.168.101.10 : OK
before config saved to configs\192.168.101.10_before.txt
Updating access-list 10
update successful.
after config saved to configs\192.168.101.10_after.txt
save config.
```