Skip to content

Ingests PAN config via api call and renames the policies according to requirements

Notifications You must be signed in to change notification settings

Gtt1229/PANpolicy-renamer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PANpolicy-renamer

Ingests PAN config via api call and renames the policies according to requirements

Create a .env file

It should be created within the directory this repo was cloned into.
The .env file should contain:

	PAN_API_KEY=<YOUR PAN API KEY>
	DEVICE_GROUP=<THE DG THAT THE POLICIES NEED TO BE RENAMED ON>
	FW_HOST=<HOSTNAME OR IP ADDRESS OF PANORAMA>

Build the dockerfile by running:

docker build -t <The name youd like to apply to the docker container> .
	Example:
	docker build -t policyrenamer .

Once it's done building run:
	docker run --rm -it -v $(pwd):/scripts policyrenamer

You should now be inside of the docker container.

From within the docker container run:
	python3 grabandparse.py 

About

Ingests PAN config via api call and renames the policies according to requirements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%