libioc.Config.Jail.Properties package

Module contents

Dictionary of jail configuration properties.

class libioc.Config.Jail.Properties.JailConfigProperties(config, logger)[source]

Bases: dict

Dictionary of jail configuration properties.

get_or_create(property_name)[source]

Get a property and initialize it if it did not exist.

Return type

Any

is_special_property(property_name)[source]

Signal if the property is a special property.

Return type

bool

libioc.Config.Jail.Properties.init_property(property_name, config=None, logger=None)[source]

Instantiate a special jail config property.

Parameters
  • property_name (str) –

    The name of the special property that should be instantiated:
    • ip4_addr

    • ip6_addr

    • interfaces

    • resolver

    • defaultrouter

    • defaultrouter6

    • depends

  • config (libioc.Config.Jail.JailConfig.JailConfig) – The special property keeps reference to this JailConfig instance

  • logger (libioc.Logger.Logger) – (optional): Logger instance that the class is initialized with

Return type

Union[AddressesProp, InterfaceProp, ResolverProp, DependsProp]