Giter VIP home page Giter VIP logo

meraki_l3_acl_updater's Introduction

Meraki L3 ACL Updater

Backup and Update scripts for L3 ACL rules across all networks within a single Meraki organisation.

Description

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:

  1. Back up the existing configuration for each Network in a single Meraki organisation to a dedicated JSON file.

  2. 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:

  1. Meraki API Key with either RO (Backup only) or RW.
  2. Meraki Organisation ID.

Getting Started

Installing

The easiest way to download the project is to clone the repository via Git.

git clone [email protected]:mckechniefraz/Meraki_L3_ACL_Updater.git

Dependencies

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

Executing program

Backup Script

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

Update Script

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

Help

Meraki API Getting Started

Obtaining your Meraki API key

License

This project is licensed under the MIT License - see the LICENSE file for details

meraki_l3_acl_updater's People

Contributors

mckechniefraz avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.