cterasdk.edge.config module#

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

Bases: BaseCommand

Edge Filer General Configuration APIs

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 Edge Filer

Return str:

The hostname of the Edge Filer

get_location()#

Get the location of the Edge Filer

Return str:

The location of the Edge Filer

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 Edge Filer

Parameters:

hostname (str) – New hostname to set

Return str:

The new hostname

set_location(location)#

Set the location of the Edge Filer

Parameters:

location (str) – New location to set

Return str:

The new location