dissect.target.plugins.os.unix.linux.fortios.locale

Module Contents

Classes

LocalePlugin

FortiOS locale plugin.

Functions

translate_timezone

Translate a FortiOS timezone number to IANA TZ.

class dissect.target.plugins.os.unix.linux.fortios.locale.LocalePlugin(target: dissect.target.Target)

Bases: dissect.target.plugin.Plugin

FortiOS locale plugin.

check_compatible() None

Perform a compatibility check with the target.

This function should return None if the plugin is compatible with the current target (self.target). For example, check if a certain file exists. Otherwise it should raise an UnsupportedPluginError.

Raises:

UnsupportedPluginError – If the plugin could not be loaded.

timezone() str | None

Return configured UI/system timezone.

language() str | None

Return configured UI language.

dissect.target.plugins.os.unix.linux.fortios.locale.translate_timezone(timezone_num: str) str

Translate a FortiOS timezone number to IANA TZ.

Resources:
  • https://<fortios>/ng/system/settings