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.
SetInterfaceExpectedState()
SetInterfaceExpectedState(interface, state): void
Set expected state for given interface.
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. expected state values |
Return
None.
// Set expected state to "ignore" for all interfaces of given node
interfaces = GetNodeInterfaces($node);
for (i : interfaces)
{
SetInterfaceExpectedState(i, "IGNORE");
}