Backup and Update scripts for L3 ACL rules across all networks within a single Meraki organisation.
This project aims to provide the scripts needed to automate the interaction with maintaining L3 ACL rules across multiple networks in a single Meraki organisation.
Currently the project will provide script to carry out the following tasks:
-
Back up the existing configuration for each Network in a single Meraki organisation to a dedicated JSON file.
-
Append new rules onto the end of the existing L3 ACL for each network in a single Meraki organisation while maintaining a Deny Any Any at the end.
You will need to ensure you have the following information from the Meraki dashboard prior to using this project:
- Meraki API Key with either RO (Backup only) or RW.
- Meraki Organisation ID.
The easiest way to download the project is to clone the repository via Git.
git clone [email protected]:mckechniefraz/Meraki_L3_ACL_Updater.git
All required dependencies can be found in the requirements.txt file.
To install the dependencies run the following command, its suggested to do so within a Python Virtual Environment.
pip3 install -r requirements.txt
Before running the script please ensure you have
- Meraki API Key (RO or RW).
- Meraki Organisation ID.
- If running a virtual environment, ensure this is activated.
- Installed the required packages from requirements.txt.
python3 meraki_acl_backup.py
Before running the script please ensure you have
- Meraki API Key (RW).
- Meraki Organisation ID.
- If running a virtual environment, ensure this is activated.
- Installed the required packages from requirements.txt.
- Update newrules.json with the new rule(s) you want to add.
The script will make the following two assumptions:
- Your default Deny rule has a comment of 'Deny_Any_Any'
- There is only the default rule using the comment of 'Default rule'
python3 meraki_acl_update.py
This project is licensed under the MIT License - see the LICENSE file for details