Function: AVI VsVip Create

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 Create an AVI VsVip.

Private Function: AviVsVipCreate

public AviVsVipCreate(objAviWorkflowRuntime: AviWorkflowRuntime, strAviCloud: string = "Default-Cloud", strTenant: string = "admin", strVipId: string = "1", strName: string, strVsVipUUID: string, strLogicalRouterTier1: string, blnEastWestPlacement: boolean = false, strAutoAllocateIpType: "V4_ONLY", strIpAddress: string, arrAviDiscoveredNetwork: AviDiscoveredNetwork[], objAviIPNetworkSubnet: AviIPNetworkSubnet, arrAviDnsInfo: AviDnsInfo[], blnAviAllocatedVip: boolean = false, blnAutoAllocateFloatingIp: boolean = false, blnAutoAllocateIp: boolean = false, blnAviAllocatedFIp: boolean = false, blnEnabled: boolean = true, strAviIpAddrType: "V4" | "V6"): AviWorkflowRuntime {

    let objAviVip: AviVip = this.AviVipBuild(strAviIpAddrType, strIpAddress, strVipId, blnEnabled, strAutoAllocateIpType, arrAviDiscoveredNetwork, objAviIPNetworkSubnet, blnAviAllocatedFIp, blnAutoAllocateIp, blnAutoAllocateFloatingIp, blnAviAllocatedVip);

    let arrAviVip: AviVip[] = [];
    arrAviVip.push(objAviVip);

    let objAviVsVip: AviVsVip = this.AviVsVipBuild(strAviCloud, strTenant, strName, strVsVipUUID, arrAviVip, arrAviDnsInfo, strLogicalRouterTier1, blnEastWestPlacement);

    let objAviVroClient: AviVroClient = objAviWorkflowRuntime.getAviVroClient();
    objAviVroClient.addObject(objAviVsVip, objAviWorkflowRuntime.getWorkflowId(), strTenant);

    return objAviWorkflowRuntime;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like