Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 856 Bytes

getinterfaceobject.adoc

File metadata and controls

36 lines (29 loc) · 856 Bytes

GetInterfaceObject()

Important

Deprecated in 3.4.

GetInterfaceObject(node, interfaceIndex) => Interface

Get interface object by index

Table 1. Parameters

node

[class-node]

node object

interfaceIndex

Integer

interface index

Return

Get node’s interface by it’s index

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