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 VsVip.
Private Function: AviVsVipBuild
privateAviVsVipBuild(strAviCloud:string,strTenant:string="admin",strName:string,strVsVipUUID:string,arrAviVip:AviVip[],arrAviDnsInfo:AviDnsInfo[],strLogicalRouterTier1:string,blnEastWestPlacement:boolean=false,):AviVsVip{
letobjAviVsVip:AviVsVip=newAviVsVip();
objAviVsVip.setCloudRef("/api/cloud?name="+strAviCloud);
objAviVsVip.setTenantRef("/api/tenant?name="+strTenant);
objAviVsVip.setName(strName);
objAviVsVip.setVip(arrAviVip);
objAviVsVip.setDnsInfo(arrAviDnsInfo);
if (strVsVipUUID){
objAviVsVip.setUuid(strVsVipUUID);
}
if (blnEastWestPlacement){
objAviVsVip.setEastWestPlacement(blnEastWestPlacement);
}
if (strLogicalRouterTier1!==null&&strLogicalRouterTier1!=""){
objAviVsVip.setTier1Lr(strLogicalRouterTier1);
}
returnobjAviVsVip;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
