Skip to content

"network_create.py' python script automates the creation of network containers and networks in Infoblox based on user provided EA-State value. It uses the Infoblox REST API to communicate with the Infoblox Grid Master and create the required network objects. Please feel free to customize the code according to your use case by choosing any other EA

License

Notifications You must be signed in to change notification settings

Farseencbv/infoblox_network_create

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Infoblox Network Container and networks Creator

This is a Python script that creates new network container(/23) based on provided Extensible Attribute value and three new networks(/24,/25 and /27) under this new network container

Getting Started

Prerequisites

  • Python 3.x
  • requests library

Usage

python create_networks.py [state]

  • The script takes a 2-letter state code as a positional argument. For example: "AR", "FL", "NY".

  • This script will create a new /23 network container under the parent container with EA-State value of the provided state.

  • Then it would create /24, /25, and /27 networks under the new /23 container.

Configuration

Before running the script, you must set the following variables in the script:

  • gm_url: URL of the Infoblox GM
  • gm_user: Infoblox GM username
  • gm_pwd: Infoblox GM password

Example

To create new network containers and networks for the state of Arkansas:

License

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

About

"network_create.py' python script automates the creation of network containers and networks in Infoblox based on user provided EA-State value. It uses the Infoblox REST API to communicate with the Infoblox Grid Master and create the required network objects. Please feel free to customize the code according to your use case by choosing any other EA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages