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.

GetInterfaceObject()

Deprecated in 3.4.

GetInterfaceObject(node, interfaceIndex) => Interface

Get interface object by index

Table 1. Parameters

node

Node

node object

interfaceIndex

Integer

interface index

Return

Node’s interface with given index, or null if not found or not accessible.

interface = GetInterfaceObject($node, 1); //Will return interface with index 1
println(interface.ifIndex); //Will print "1"