Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 874 Bytes

instance.adoc

File metadata and controls

37 lines (30 loc) · 874 Bytes

Instance()

Important

Deprecated in 5.0.

Return array with instance values instead.

Instance(name, displayName, object) => Array

This is helper function for instance filter script. It can be used to return accepted item. This function has named parameters.

Table 1. Parameters

name

String

Instance name ({instance})

displayName

String

Instance display name ({instance-name})

object

[class-netobj]

Related object

Return

Array, where the first value is true, the second is name, the third is displayName and the forth is object.

Example
return Instance(displayName: GetInterfaceName($node, $1), object: GetInterfaceObject($node, $1), name: $1); //This will return correctly formatted array to accept instance