Netplan template macros¶
The following table describes the main lookup functions, or macros,
that can be used in the npTemplate
field of an L2 template.
Lookup function |
Description |
---|---|
|
Name of a NIC number N. NIC numbers correspond to the interface
mapping list. This macro can be used as a key for the elements
of |
|
MAC address of a NIC number N registered during a host hardware inspection. |
|
IP address and mask for a NIC number N. If the address does not exist yet, it will be automatically allocated from the given subnet. The interface is identified by its MAC address. |
|
IP address and mask for a virtual interface, |
|
IPv4 CIDR address from the given subnet. |
|
IPv4 default gateway address from the given subnet. |
|
List of the IP addresses of name servers from the given subnet. |
|
Technology Preview since MOSK 23.2.2. IP address for a cluster API load balancer. |