Reply

Updating parent ext attributes without touching children

navid_gh
Techie
Posts: 2
677     0

Hi All,

 

I have started a project to integrate with infoblox api and I recently faced a problem.

 

I have two use cases:

 

1- Updating parent ext attributes without touching children

2- Updating parent ext attribute and updating children as well

 

I will explain both case in details:

 

Assumptions:

1- Extensible attribute name is COLOR

2- Let's say I have a tree like below:

 

     Parent: 10.0.0.0/30 (COLOR=red =>Overriden)

         Children: 

             - 10.0.0.0/31 (Color=red => Inherited)

             - 10.0.0.2/31 (Color=red => Inherited)

 

Case 1:

if I update COLOR in parent to BLUE, it should keep children to RED as it was before and only change parent to BLUE

 

Case 2:

if I update COLOR in parent to BLUE, it should change children to BLUE as well

 

I could achive to Case 2 but the problem is Case 1 which I couldn't even do it with Infoblox UI.

 

Any help is absolutly appreciated.

 

Re: Updating parent ext attributes without touching children

Adviser
Posts: 95
678     0

Case 1 will always affect the inherited value of the children because they are set to inherit from the parent.  And the parent has been modified.

 

There is a function to change children from direct values to inherited, if they are the same.  But there is not an option to change children from inherited to a direct value of the grandparent object.

 

Instead you would need to:

1. record the value of the parent network

2. search for all the direct children of the parent network, and set their value direcly

3. set the value for the parent object

Showing results for 
Search instead for 
Do you mean 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin