This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

GetInterfaceName()

Deprecated in 3.4.

Please use getInterface(), getInterfaceByIndex(), getInterfaceByMACAddress() or getInterfaceByName() methods of Node class to get interface object and name attribute to get it’s name.

GetInterfaceName(node, interfaceIndex): String

Get interface name by index

Table 1. Parameters

node

Node

node object

interfaceIndex

Integer

interface index

Return

Interface name as a string, or null if interface with given index is not found.

println(GetInterfaceName($node, 1)); //Will print "lo"