NXSL:GetNodeInterfaces

Revision as of 20:23, 20 February 2013 by Victor (talk | contribs) (Created page with "__NOTOC__ Get all interfaces for given node. '''Since:''' 1.2.0 == Syntax == GetNodeInterfaces(''node''); == Parameters == :{| |- | ''node'' || Node object...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Get all interfaces for given node.

Since: 1.2.0

Syntax

GetNodeInterfaces(node);


Parameters

node Node object. Predefined variable $node can be used to refer to current node in transformation script or event processing policy rule.


Return Value

Array of objects of class Interface, with first object placed at index 0. End of list indicated by array element with null value.


Examples

// Log names and ids of all interface objects for given node
interfaces = GetNodeInterfaces($node);
foreach(i : interfaces)
{
	trace(1, "Interface: name='" . i->name . "' id=" . i->id);
}