FindNodeByMACAddress(macaddress, currentNode) => Node
Look up [class-node] object by MAC address of one of the interfaces.
If trusted node validation is enforced, currentNode
should point to execution context object
(instance of [class-netobj], $node
in most cases).
If trusted nodes are disabled (default server configuration), currentNode
can be omitted or set to null
.
macaddress |
String |
MAC address. |
currentNode |
Lookup context or |
Return
Instance of [class-node] object or null
if not found or not accessible.
Example
node = FindNodeByMACAddress("AA:34:35:D8:12:45"); if (node != NULL) println(node.name); // Prints node name if node with given MAC address is found