Skip to main content

Network Template Variables​

The information collected in the Network template variables defines attributes of the network interfaces available in the system.

The NICs are tracked both by number (0, 1, 2, ...) and by interface name (eth0, virbr0, ...).

For example, if ${Network/NICs/2/Name} is equal to eth0, then the network interface Mac Address can be retrieved via both the ${Network/NICs/2/MacAddress} and the ${Network/NICs/eth0/MacAddress} variables.

VariableDescription
${Network/NICs/_<Number>_/AdvertisedLinkModes}Ethernet Link Modes advertised as available
${Network/NICs/_<Number>_/Duplex}Ethernet Duplex mode
${Network/NICs/_<Number>_/IsVirtual}Wheter the NIC is real ("false") or not ("true")
${Network/NICs/_<Number>_/MacAddress}MAC of the interface
${Network/NICs/_<Number>_/Name}Interface name
${Network/NICs/_<Number>_/Speed}Speed of the link
${Network/NICs/_<Number>_/SupportedLinkModes}Ethernet Link Modes supported by the NIC
${Network/NICs/_<Number>_/SupportedPorts}NIC's available ports
${Network/NICs/_<IfaceName>_/AdvertisedLinkModes}Ethernet Link Modes advertised as available
${Network/NICs/_<IfaceName>_/Duplex}Ethernet Duplex mode
${Network/NICs/_<IfaceName>_/IsVirtual}Wheter the NIC is real ("false") or not ("true")
${Network/NICs/_<IfaceName>_/MacAddress}MAC of the interface
${Network/NICs/_<IfaceName>_/Name}Interface name
${Network/NICs/_<IfaceName>_/Speed}Speed of the link
${Network/NICs/_<IfaceName>_/SupportedLinkModes}Ethernet Link Modes supported by the NIC
${Network/NICs/_<IfaceName>_/SupportedPorts}NIC's available ports
${Network/TotalNICs/}Number of NICs present in the system