mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
26 lines
651 B
Python
26 lines
651 B
Python
"""
|
|
Defines models for General config variables.
|
|
|
|
Imports config variables and overrides default class attributes.
|
|
|
|
Validates input for overridden parameters.
|
|
"""
|
|
# Standard Library Imports
|
|
from typing import List
|
|
|
|
# Project Imports
|
|
from hyperglass.configuration.models._utils import HyperglassModel
|
|
|
|
|
|
class General(HyperglassModel):
|
|
"""Class model for params.general"""
|
|
|
|
debug: bool = False
|
|
primary_asn: str = "65001"
|
|
org_name: str = "The Company"
|
|
google_analytics: str = ""
|
|
redis_host: str = "localhost"
|
|
redis_port: int = 6379
|
|
requires_ipv6_cidr: List[str] = ["cisco_ios", "cisco_nxos"]
|
|
request_timeout: int = 30
|