Assign Network & IP (Infoblox) - Workflow
  • 18 Oct 2024
  • Dark
    Light
  • PDF

Assign Network & IP (Infoblox) - Workflow

  • Dark
    Light
  • PDF

Article summary

Next, we will build our workflow.   

Workflow Video

Step 1

From Automation Studio, select Create a Workflow from the Quick Start menu.

 Step 2

Name the workflow Lab – Assign Network and IP – Infoblox – XX and click Create.

Step 3

A fresh workflow canvas opens.   For our use-case, we would like to build our workflow horizontally, so we will click and drag the START and END termination tasks so they are aligned horizontally on our canvas.

 Step 4

We are ready to begin adding tasks from our Task Palette.  The first task we need is a Transformation task.  Search for the Transformation task and then click and drag the task onto the canvas.

 Step 5

Add the following tasks to the canvas to the right of the Transformation task:  Assign Next Network, Query, Assign Next IP 2, Transformation, and View Data.

 Step 6

Next, we need to connect the tasks with transitions to form the workflow.  This is done by first clicking the START task, which will highlight the task with a dashed border.  Click within the dashed border and begin dragging the transition towards the Transformation task.  When the transition snaps to the Transformation task, release the mouse button.

 Step 7

Repeat this process to add transitions between the remaining tasks. 

 Note:  The default transition is a Success transition.  If you would like to add an Error or Failure transition, press and hold the E or F key on your keyboard as you are adding the transition.  If you would like to change an existing transition, right click on the transition and a popup will open.  From the popup, you can choose to change the transition type or to delete the transition. 

 Step 8

We are ready to begin configuring the tasks.  Double click the first Transformation task to open the configuration window. 

Step 9

From the Transformation dropdown, select the Lab – Assign Network and IP – Infoblox JST – XX transformation.  Once selected, the summary will automatically update.

 Step 10

For the formData variable, select Job as the Variable Source and enter formData for the Job variable.  

 Step 11

For the jobId variable, select Job as the Variable Source and _id for the Job variable.  

 Step 12

Close the configuration window.

 Step 13

Double click the Assign Next Network task to open the configuration window.

Step 14

On the Details tab, update the Summary to Assign Next Available Network and the Description to Assign Next Available Network Using Infoblox Adapter.

 Step 15

Returning to the Data tab, select Task for the networkBlock variable.   For the Previous Task, select Lab – Assign Network and IP – Infoblox JST – XX and for the Task variable, select parentNetwork.

 Step 16

Select Static for the nextNetworkSubnetMask variable and enter 30 for the Value.

 Step 17

For the comment variable, select Task for the Variable Source.  Select Lab – Assign Network and IP – Infoblox JST – XX for the Previous Task and networkDescription for the Task Variable.

 Step 18

Close the configuration window.

Workflow Video - Part 2

Step 19

Double click the Query task to open the configuration window.

 Step 20

On the Details tab, update the Summary to Query Assigned Network.  Also update the Description to Query Assigned Network.

Step 21

On the Data tab, select Static for the pass_on_null Variable Source and False for the Value.

Step 22

For the query variable, select Static for the Variable Source and enter response.network for the Value.

Step 23

For the object variable, select Task for the Variable Source and then select Assign Next Available Network for the Previous Task and result as the Task Variable.

 Step 24

Close the configuration window.

 Step 25

Double click the Assign Next IP 2 task to open the configuration window.

 Step 26

On the Details tab, update the Summary to Assign Next Available IP Address and the Description to Assign Next Available IP Address Using Infoblox Adapter.

Step 27

On the Data tab, select Task for the networkIP variable.  Select Query Assigned Network for the Previous Task and return_data for the Task Variable.

Step 28

Select Task for the hostName variable and then select Lab – Assign Network and IP – Infoblox JST – XX for the Previous Task and hostname for the Task Variable.

 Step 29

Select Task for the comment variable and then select Lab – Assign Network and IP – Infoblox JST – XX for the Previous Task and hostDescription for the Task Variable.

 Step 30

Close the configuration window.

 Step 31

Double click the second Transformation task to open the configuration window.

Step 32

From the Transformation dropdown, select the Generate Reservation Message pre-built Transformation.  The summary will automatically update.

 Step 33

For the formData variable, select Job for the Variable Source and enter formData for the Job Variable.

 Step 34

Select Task for the networkResult variable and then select Assign Next Available Network for the Previous Task and result for the Task Variable.

 Step 35 

Select Task for the ipResult variable and then select Assign Next IP Address2 for the Previous Task and result for the Task Variable.

 Step 36

Close the configuration window.

Step 37

Double click the View Data task to open the configuration window.

 Step 38

On the Details tab, update the Summary to View Reservation.  Also update the Description to View Reservation.

Step 39

On the Data tab, select Static for the header variable and enter Reservation for the Value.

 Step 40

For the message variable, select Task for the Variable Source and then select Generate Reservation Message for the Previous Task and message for the Task Variable.

 Step 41

For the body variable, select Static for the Variable Source and leave the Value blank.

 Step 42

For the variables variable, select Static for the Variable Source and leave the Value blank.

Step 43

For the btn_success variable, select Static for the Variable Source and enter Ok for the Value.

Step 44

For the btn_failure variable, select Static for the Variable Source and leave the Value blank.

Close the configuration window.

Step 45

Our workflow is complete.   Click Save.  A green check mark appears in the upper right corner signaling that the workflow has passed validation and that all resources needed to run the workflow are present.

Step 46

Click Run.   The Set Variables window opens, showing the variables the workflow requires to run.  This workflow expects to receive one variable, formData, which will be passed in by the automation we will build next.  

 Step 47

The Run button will run the workflow, but we are only testing it to confirm the inputs.  Click Cancel.

 


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.