Giter Site home page Giter Site logo

chrisgoodwins / paloalto_rename-address-objects Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 30 KB

Rename Palo Alto Networks firewall or Panorama device group address objects in bulk

License: GNU General Public License v3.0

Python 100.00%
python paloaltonetworks palo-alto-networks

paloalto_rename-address-objects's Introduction

paloalto_rename-address-objects

Enables a user to rename address objects in bulk by comparing a csv file containing new and old object names against the current set of address objects on a firewall or Panorama device group

Features

  • Checks for duplicate objects, and renames accordingly
  • Checks new object names for compliance with PAN naming convention
  • Run script against multiple device groups, with multiple lists
  • Script is multithreaded, so it runs quickly
  • Option to run the script in practice mode with --dry-run arg

Usage

rename-addr-objects.py <user-provided-list.csv> [--dry-run]

CSV list should be in the following format:

NEW_address1,OLD_address1
NEW_address2,OLD_address2
NEW_address3,OLD_address3
NEW_network1,OLD_network1
NEW_network2,OLD_network2

Warning

This script pushes an api call for each individual object to be renamed. If you are renaminig a lot of objects at once, this could have an impact on the management plane of your device.

ToDo

Currently there is no support for objects that are overriding parent device group objects. This will be fixed once a bug is fixed on the upstream pandevice framework

paloalto_rename-address-objects's People

Contributors

chrisgoodwins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.