clearpath_config.system.hosts module

class clearpath_config.system.hosts.HostConfig(config: dict = {}, hostname: str | Hostname = 'generic-xxxx', ip_address: str | IP = '192.168.131.1')

Bases: BaseConfig

DEFAULTS = {'hostname': 'generic-xxxx', 'ip': '192.168.131.1'}
HOSTNAME = 'hostname'
IP_ADDRESS = 'ip'
KEYS = {'hostname': 'hostname', 'ip': 'ip'}
TEMPLATE = {'hostname': 'hostname', 'ip': 'ip'}
property hostname: str
property ip_address: IP
to_dict() dict
class clearpath_config.system.hosts.HostListConfig

Bases: ListConfig[HostConfig, str]

DEFAULTS = [{'hostname': 'generic-xxxx', 'ip': '192.168.131.1'}]
to_dict() List[dict]