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 remove an AVI Controller.
Public Function: AviControllerRemove
public AviControllerRemove(strAviControllerFQDN: string): boolean {
let blnIsHttps: boolean = strAviControllerFQDN.indexOf('https') === 0;
if (blnIsHttps === true) {
strAviControllerFQDN = strAviControllerFQDN.substring(8, strAviControllerFQDN.length);
let intPositionOfEnd: number = strAviControllerFQDN.indexOf("/");
if (intPositionOfEnd !== -1) {
strAviControllerFQDN = strAviControllerFQDN.substring(0, intPositionOfEnd);
}
} else {
strAviControllerFQDN = strAviControllerFQDN;
}
try {
AviVroPlugin.removeVroClient(strAviControllerFQDN);
return true;
}
catch (objException) {
return false;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
