grizzly v0.8.0 Grizzly.SmartStart.MetaExtension.BootstrappingMode View Source

This extension is used to advertise the bootstrapping mode to use when including the node advertised in the provisioning list

Link to this section Summary

Types

The modes are

t()

Functions

Make a BootstrappingMode.t() from a binary

Create a BootstrappingMode.t()

Make a binary from a BootstrappingMode.t()

Link to this section Types

Link to this type

mode() View Source
mode() :: :security_2 | :smart_start

The modes are:

  • :security_2 - the node must be manually set to learn mode and follow the S2 bootstrapping instructions
  • :smart_start - the node will use S2 bootstrapping automatically using the SmartStart functionality
Link to this type

t() View Source
t() :: %Grizzly.SmartStart.MetaExtension.BootstrappingMode{mode: mode()}

Link to this section Functions

Link to this function

from_binary(arg1) View Source
from_binary(binary()) ::
  {:ok, t()} | {:error, :critical_bit_not_set | :invalid_binary}

Make a BootstrappingMode.t() from a binary

The binary string for this extension requires the critical bit to be set and if it is not this function will return {:error, :critical_bit_not_set}

Link to this function

new(mode) View Source
new(mode()) :: {:ok, t()} | {:error, :invalid_mode}

Create a BootstrappingMode.t()

Link to this function

to_binary(bootstrapping_mode) View Source
to_binary(t()) :: {:ok, binary()}

Make a binary from a BootstrappingMode.t()