08-16-2018 08:04 AM
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:
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)
- 10.0.0.0/31 (Color=red => Inherited)
- 10.0.0.2/31 (Color=red => Inherited)
if I update COLOR in parent to BLUE, it should keep children to RED as it was before and only change parent to BLUE
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.
08-23-2018 09:30 PM
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