Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 799 Bytes

getinterfacename.adoc

File metadata and controls

35 lines (28 loc) · 799 Bytes

GetInterfaceName()

Important

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

[class-node]

node object

interfaceIndex

Integer

interface index

Return

Interface name as a string

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