Function: AVI Controller Get by Name

by Simon Sparks · 8 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 get AVI Controller by name.

Public Function: AviControllerGetByName

public AviControllerGetByName(strAviControllerFQDN: string): AviConnectionInfo {

    let arrAviConnectionInfo: AviConnectionInfo[] = AviVroPlugin.getAllAviClients();

    let objAviConnectionInfo: AviConnectionInfo = arrAviConnectionInfo.find((objAviConnectionInfo: AviConnectionInfo): boolean => {

        //@ts-ignore
        return objAviConnectionInfo.fqdn === strAviControllerFQDN;
    });

    return objAviConnectionInfo;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like