vRA 8 - ABX action to Customizing IP Assignments

Requirement:- Lets suppose User has a choice to either user vRA automated IP or Use their own IP address.

Automatically without the user specifying IP information in UI. Maybe the information the user provides can be combined to provide an IP address manually. This is when ABX can be used.

 We have two custom property's in Blueprint reservedIP(string for accepting the IP) and UseReservedIP (boolean)

def handler(context, inputs):
    outputs = {}
    VMIP = inputs['customProperties']['reservedIP']
    addresses = [[]]
    outputs["addresses"] = addresses
    outputs["addresses"][0]=[str(VMIP)]
    return outputs
 

Subscription:- 

Event Topic is Network Configure 

condition:- event.data.customProperties.UseReservedIP == "true"

Post a Comment (0)
Previous Post Next Post