cterasdk.edge.config module#

class cterasdk.edge.config.Config(gateway)#

Bases: BaseCommand

General gateway configuraion

disable_wizard()#

Disable the first time wizard

enable_wizard()#

Enable the first time wizard

export(destination=None)#

Export the Edge Filer configuration

Parameters:

destination (str,optional) – File destination, defaults to the default directory

get_hostname()#

Get the hostname of the gateway

Return str:

The hostname of the gateway

get_location()#

Get the location of the gateway

Return str:

The location of the gateway

import_config(config, exclude=None)#

Import the Edge Filer configuration

Parameters:
  • config (str) – A string or a path to the Edge Filer configuration file

  • delete_attrs (list[str],optional) – List of configuration properties to exclude from import

is_wizard_enabled()#

Get the current configuration of the first time wizard

Return bool:

True if the first time wizard is enabled, else False

load_config(config)#

Load the Edge Filer configuration

Parameters:

config (str) – A string or a path to the Edge Filer configuration file

set_hostname(hostname)#

Set the hostname of the gateway

Parameters:

hostname (str) – New hostname to set

Return str:

The new hostname

set_location(location)#

Set the location of the gateway

Parameters:

location (str) – New location to set

Return str:

The new location