Settings
GSO settings.
Ensuring that the required parameters are set correctly. An example file oss-params-example.json
is present in the
GSO package itself.
EnvironmentEnum
Bases: strEnum
The different environments in which the GSO system can run.
Source code in gso/settings.py
DEVELOPMENT = 'development'
class-attribute
instance-attribute
A local development environment.
TEST = 'test'
class-attribute
instance-attribute
The test environment.
UAT = 'uat'
class-attribute
instance-attribute
The user acceptance environment.
PRODUCTION = 'production'
class-attribute
instance-attribute
The production environment.
GeneralParams
Bases: BaseSettings
General parameters for a GSO configuration file.
Source code in gso/settings.py
public_hostname
instance-attribute
The hostname that GSO is publicly served at, used for building callback URLs for public use.
internal_hostname
instance-attribute
The hostname of GSO that is for internal use, such as the provisioning proxy.
environment
instance-attribute
The environment in which GSO is running, such as development, test, uat, or production.
pre_check_cli_max_output_lines = 50
class-attribute
instance-attribute
The maximum number of lines to print when displaying the output of a bgp_status_precheck CLI command.
pre_check_cli_http_timeout_sec = 300
class-attribute
instance-attribute
The timeout in seconds for the HTTP request to the LSO pre-check endpoint.
l2_migration_stagger_step_seconds = 30.0
class-attribute
instance-attribute
The number of seconds to wait between starting two L2 migration workflows.
l3_migration_stagger_step_seconds = 30.0
class-attribute
instance-attribute
The number of seconds to wait between starting two L3 migration workflows.
CelerySettings
Bases: BaseSettings
Parameters for Celery.
Source code in gso/settings.py
InfoBloxParams
SolrParams
Bases: BaseSettings
Parameters related to Solr.
Source code in gso/settings.py
url = 'http://localhost:8983/solr/gso'
class-attribute
instance-attribute
The URL of the Solr instance used by GSO.
always_commit = True
class-attribute
instance-attribute
Whether to always commit changes to the Solr instance immediately.
timeout = 5
class-attribute
instance-attribute
The timeout in seconds for requests to the Solr instance.
max_retries = 3
class-attribute
instance-attribute
The maximum number of retries for requests to the Solr instance.
backoff_seconds = 1
class-attribute
instance-attribute
The number of seconds to wait before retrying a request to the Solr instance.
enabled = False
class-attribute
instance-attribute
Whether the Solr client is enabled. If set to False, the client will not be used.
indexing_batch_size = 200
class-attribute
instance-attribute
The number of documents to index in a single batch when indexing data into Solr.
V4NetworkParams
Bases: BaseSettings
A set of parameters that describe an IPv4 network in InfoBlox.
Source code in gso/settings.py
check_exactly_one_attribute_set()
Exactly one of containers or networks must be defined.
Source code in gso/settings.py
V6NetworkParams
Bases: BaseSettings
A set of parameters that describe an IPv6 network in InfoBlox.
Source code in gso/settings.py
check_exactly_one_attribute_set()
Exactly one of containers or networks must be defined.
Source code in gso/settings.py
ServiceNetworkParams
Bases: BaseSettings
Parameters for InfoBlox.
The parameters describe IPv4 and v6 networks, and the corresponding domain name that should be used as a suffix.
Source code in gso/settings.py
ManagementServiceNetworkParams
Bases: ServiceNetworkParams
Parameters for InfoBlox that include a default VLAN ID.
Source code in gso/settings.py
IPAMParams
Bases: BaseSettings
A set of parameters related to IPAM.
Source code in gso/settings.py
MonitoringSNMPV2Params
MonitoringSNMPV3Params
MonitoringLibreNMSParams
SNMPParams
Bases: BaseSettings
Parameters for SNMP in LibreNMS.
Source code in gso/settings.py
v3 = None
class-attribute
instance-attribute
Optional parameter
Support for SNMP v3 will get added in a later version of GSO. Parameters are optional for now.
MonitoringParams
ProvisioningProxyParams
NetBoxParams
EmailParams
Bases: BaseSettings
Parameters for the email service.
Attributes:
Name | Type | Description |
---|---|---|
notification_email_destinations |
str
|
List of email addresses that should receive notifications when validation of a subscription fails. Can be a comma-separated list of multiple addresses. |
kentik_email_destinations |
str
|
A list of email addresses formatted similarly, but for notifications related to Kentik. |
system_email_destinations |
str
|
A list of email addresses that receive system notifications such as cleaned up validation tasks. |
Source code in gso/settings.py
SharepointParams
Bases: BaseSettings
Settings for different Sharepoint sites.
Source code in gso/settings.py
KentikParams
Bases: BaseSettings
Settings for accessing Kentik's API.
Source code in gso/settings.py
SentryParams
MoodiParams
ServiceConfig
ServiceVersionConfig
OSSParams
Bases: BaseSettings
The set of parameters required for running GSO.
Source code in gso/settings.py
load_oss_params()
Look for OSS_PARAMS_FILENAME
in the environment and load the parameters from that file.