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 get AVI Controller by name.
Public Function: AviControllerGetByName
publicAviControllerGetByName(strAviControllerFQDN:string):AviConnectionInfo{
letarrAviConnectionInfo:AviConnectionInfo[]=AviVroPlugin.getAllAviClients();
letobjAviConnectionInfo:AviConnectionInfo=arrAviConnectionInfo.find((objAviConnectionInfo:AviConnectionInfo):boolean=>{
//@ts-ignore
returnobjAviConnectionInfo.fqdn===strAviControllerFQDN;
});
returnobjAviConnectionInfo;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
