Module autoip

Container networking auto IP allocation module.

Will search ./ip.conf then /etc/container/ip.conf. If neither exists it will create /tmp/ip.conf.

Functions

GetAssignment (name, preferred) Get the ID of the assignment.
GetIPv4 (name, preferred) Get the containers IPv4 assignment.
GetIPv4Prefix (name, preferred) Get the containers IPv4 /24 prefix assignment.
GetIPv6 (name, preferred) Get the containers IPv6 assignment.
GetIPv6Prefix (name, preferred) Get the containers IPv6 /96 prefix assignment.
AssignIP (name, preferred) Automatically assign IPv4 and IPv6 addresses and route Prefixes.


Functions

GetAssignment (name, preferred) line 91
Get the ID of the assignment.

Parameters:

  • name String Name of container.
  • preferred [opt] int Preferred IP Address.

Returns:

    int Octet of container IP.
GetIPv4 (name, preferred) line 112
Get the containers IPv4 assignment.

Parameters:

  • name String Name of container.
  • preferred [opt] int Preferred IP Address.

Returns:

    String IPv4 address.
GetIPv4Prefix (name, preferred) line 122
Get the containers IPv4 /24 prefix assignment.

Parameters:

  • name String Name of container.
  • preferred [opt] int Preferred IP Address.

Returns:

    String IPv4 network address. Use mask /24.
GetIPv6 (name, preferred) line 133
Get the containers IPv6 assignment.

Parameters:

  • name String Name of container.
  • preferred [opt] int Preferred IP Address.

Returns:

    String IPv6 address.
GetIPv6Prefix (name, preferred) line 146
Get the containers IPv6 /96 prefix assignment.

Parameters:

  • name String Name of container.
  • preferred [opt] int Preferred IP Address.

Returns:

    String IPv6 network address. Use mask /96.
AssignIP (name, preferred) line 159
Automatically assign IPv4 and IPv6 addresses and route Prefixes. Do not use this function if you plan to manually assign IP addresses to interfaces.

Parameters:

  • name String Name of container.
  • preferred [opt] int Preferred IP Address.
generated by LDoc 1.4.6 Last updated 2019-03-17 07:43:26