Orchestrator Function: AVI Vip Build

by Simon Sparks · 11 March 2026

To use this function add it to the class library file named PluginAVIService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: PluginAVIService.ts

Description: Orchestrator Function to Build an AVI Vip.

Private Function: AviVipBuild

privateAviVipBuild(strAviIpAddrType:"V4"|"V6",strIpAddress:string,strVipId:string,blnEnabled:boolean=true,strAutoAllocateIpType:string="V4_ONLY",arrAviDiscoveredNetwork:AviDiscoveredNetwork[],objAviIPNetworkSubnet:AviIPNetworkSubnet,blnAviAllocatedFIp:boolean=false,blnAutoAllocateIp:boolean=false,blnAutoAllocateFloatingIp:boolean=false,blnAviAllocatedVip:boolean=false):AviVip{
letobjAviIpAddr:AviIpAddr=newAviIpAddr();
objAviIpAddr.setType(strAviIpAddrType);
objAviIpAddr.setAddr(strIpAddress);

letobjAviVip:AviVip=newAviVip();
objAviVip.setVipId(strVipId);
objAviVip.setEnabled(blnEnabled);
objAviVip.setAutoAllocateIpType(strAutoAllocateIpType);
objAviVip.setIpAddress(objAviIpAddr);
objAviVip.setDiscoveredNetworks(arrAviDiscoveredNetwork);
objAviVip.setIpamNetworkSubnet(objAviIPNetworkSubnet);

if (blnAviAllocatedFIp){
objAviVip.setAviAllocatedFip(blnAviAllocatedFIp);
}

if (blnAutoAllocateIp){
objAviVip.setAutoAllocateIp(blnAutoAllocateIp);
}

if (blnAutoAllocateFloatingIp){
objAviVip.setAutoAllocateFloatingIp(blnAutoAllocateFloatingIp);
}

if (blnAviAllocatedVip){
objAviVip.setAviAllocatedVip(blnAviAllocatedVip);
}

returnobjAviVip;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like