Difference between revisions of "NXSL:SetInterfaceExpectedState"
Jump to navigation
Jump to search
(Created page with "__NOTOC__ Set expected state for given interface. '''Since:''' 1.2.6 == Syntax == SetInterfaceExpectedState(''interface'', ''state''); == Parameters == :{| |- | ''interf...") |
m (Text replacement - "^" to "{{deprecated}}") |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | {{deprecated}}__NOTOC__ | ||
Set expected state for given interface. | Set expected state for given interface. | ||
Line 11: | Line 11: | ||
== Parameters == | == Parameters == | ||
{| class="wikitable" | |||
|- | |- | ||
| ''interface'' || [[NXSL:Interface|Interface]] object. Can be obtained using [[NXSL:GetNodeInterfaces|GetNodeInterfaces]] or [[NXSL:GetInterfaceObject|GetInterfaceObject]]. | | ''interface'' || [[NXSL:Interface|Interface]] object. Can be obtained using [[NXSL:GetNodeInterfaces|GetNodeInterfaces]] or [[NXSL:GetInterfaceObject|GetInterfaceObject]]. | ||
Line 27: | Line 27: | ||
|} | |} | ||
|} | |} | ||
== Return Value == | == Return Value == |
Latest revision as of 18:13, 13 September 2022
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide) |
Set expected state for given interface.
Since: 1.2.6
Syntax
SetInterfaceExpectedState(interface, state);
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. Possible values are:
|
Return Value
None.
Examples
// Set expected state to "ignore" for all interfaces of given node
interfaces = GetNodeInterfaces($node);
foreach(i : interfaces)
{
SetInterfaceExpectedState(i, "IGNORE");
}