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
publicAviVsVipCreate(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{
letobjAviVip:AviVip=this.AviVipBuild(strAviIpAddrType,strIpAddress,strVipId,blnEnabled,strAutoAllocateIpType,arrAviDiscoveredNetwork,objAviIPNetworkSubnet,blnAviAllocatedFIp,blnAutoAllocateIp,blnAutoAllocateFloatingIp,blnAviAllocatedVip);
letarrAviVip:AviVip[]= [];
arrAviVip.push(objAviVip);
letobjAviVsVip:AviVsVip=this.AviVsVipBuild(strAviCloud,strTenant,strName,strVsVipUUID,arrAviVip,arrAviDnsInfo,strLogicalRouterTier1,blnEastWestPlacement);
letobjAviVroClient:AviVroClient=objAviWorkflowRuntime.getAviVroClient();
objAviVroClient.addObject(objAviVsVip,objAviWorkflowRuntime.getWorkflowId(),strTenant);
returnobjAviWorkflowRuntime;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
