Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 801 Bytes

setinterfaceexpectedstate.adoc

File metadata and controls

40 lines (33 loc) · 801 Bytes

SetInterfaceExpectedState()

Important

Deprecated in 3.0.

Please use setExpectedState() method of [class-interface] class.

SetInterfaceExpectedState() => void

Set expected state for given interface.

Table 1. Parameters

interface

Interface object. Can be obtained using GetNodeInterfaces or GetInterfaceObject.

state

New expected state for interface. Can be specified as integer code or state name. [enum-interface-expected-state]

Return

None.

Example
// Set expected state to "ignore" for all interfaces of given node
interfaces = GetNodeInterfaces($node);
foreach(i : interfaces)
{
	SetInterfaceExpectedState(i, "IGNORE");
}