libioc.Host module

ioc Host module.

class libioc.Host.Host(defaults=None, datasets=None, zfs=None, logger=None)[source]

Bases: libioc.Host.HostGenerator

Synchronous wrapper of HostGenerator.

class libioc.Host.HostGenerator(defaults=None, datasets=None, zfs=None, logger=None)[source]

Bases: object

Asynchronous representation of the jail host.

property default_config

Return the lazy-loaded default configuration.

Return type

BaseConfig

property defaults

Return the lazy-loaded defaults.

Return type

DefaultResource

property devfs

Return the lazy-loaded DevfsRules instance.

Return type

DevfsRules

property id

Return the hostid and memoize on first lookup.

Return type

str

property ipfw_enabled

Return True if ipfw is enabled on the host system.

Return type

bool

property processor

Return the hosts processor architecture.

Return type

str

property release_version

Return the host release version.

Return type

str

property userland_version

Return the host userland version number.

Return type

float