SystemEndpoint

Bases: BaseEndpoint

Endpoint to manage system-level configuration on an Alcatel-Lucent OmniSwitch using CLI-based API commands.

list()

Retrieve current system configuration including name, contact, location, time, and timezone.

Returns:
  • ApiResult

    The parsed result of the show system command.

set_contact(contact)

Set the system contact information.

Parameters:
  • contact (str) –

    Contact name or information string.

Returns:
  • ApiResult( ApiResult ) –

    Result of the operation or the updated system configuration.

set_date(data)

Set the system date.

Parameters:
  • data (str) –

    Date string in the required CLI format (e.g., “MM/DD/YYYY”).

Returns:
  • ApiResult( ApiResult ) –

    Result of the operation or the updated system configuration.

set_location(location)

Set the system location.

Parameters:
  • location (str) –

    Location string describing where the system is deployed.

Returns:
  • ApiResult( ApiResult ) –

    Result of the operation or the updated system configuration.

set_name(name)

Set the system name.

Parameters:
  • name (str) –

    The desired system name.

Returns:
  • ApiResult( ApiResult ) –

    Result of the operation or the updated system configuration.

set_time(time)

Set the system time.

Parameters:
  • time (str) –

    Time string in the required CLI format (e.g., “HH:MM:SS”).

Returns:
  • ApiResult( ApiResult ) –

    Result of the operation or the updated system configuration.

set_timezone(timezone)

Set the system timezone.

Parameters:
  • timezone (str) –

    Timezone string (e.g., “UTC+8”, “PST”, “GMT+1”).

Returns:
  • ApiResult( ApiResult ) –

    Result of the operation or the updated system configuration.