Setup ETO Web UI

setup_eto.connect(server_url, username=None, password=None, new_password=None, ssl_verify=True)[source]

Connect to a server and return a SwaggerClient instance.

Parameters

server_urlstr

The URL of the server to connect to.

usernamestr, optional

The username for authentication (default is None).

passwordstr, optional

The password for authentication (default is None).

new_passwordstr, optional

The new password to set (default is None).

ssl_verifybool, optional

Whether to verify SSL certificates (default is True).

Returns

swagger_clientSwaggerClient

A SwaggerClient instance connected to the specified server.

Notes

This function connects to a server using the provided server_url. If ssl_verify is set to False, SSL certificate verification is disabled. The function initializes a SwaggerClient instance with customized configurations and returns it. If username and password are provided, authentication is performed using the provided credentials. If new_password is provided, it is used for changing the password. The resulting SwaggerClient instance is returned.

setup_eto.setup_eto_with_retry(hostname, username, old_password, password, allow_enrollment, max_retries=30, retry_delay=5)[source]

Setup ETO (Encrypted Traffic Orchestrator) and change it’s enrollment state to allow.

Parameters

hostnamestr

The hostname of the server.

usernamestr

The username for authentication.

old_passwordstr

The old password for authentication.

passwordstr

The new password for authentication.

max_retriesint, optional

The maximum number of retries in case of failure. Default is 30.

retry_delayint, optional

The delay (in seconds) between retries. Default is 5.

Raises

SystemError

If the maximum number of retries is reached without success.