getNetworkDevices()
Returns a list of information for the available network devices and interfaces.
Synopsis
dyn_mapping getNetworkDevices();
Parameter
Parameter | Description |
---|---|
- | - |
Return value
List of mappings containing the information of the network devices/interfaces.
Error
-
Description
The function returns a list of mappings with the information to the corresponding network device.
Each mapping inside of the list represents a separate network device and contains following information:
- name (string) ... Name of the network device/interface
- isUp (bool) ... Is the interface activated/deactivated?
- isRunning (bool) ... Is the interface running (e.g. has an IP address)?
- isLoopback (bool) ... Is this the loopback device?
- addresses (dyn_mapping) .. One or more IP addresses and corresponding additional information, see description below.
The field "addresses" contains one or more mappings with the following information for each connection address:
- macAddr (string) ... MAC address
- ipAddr (string) ... IPv4 address
- mask (string) ... Netmask
- bcast (string) ... Broadcast address
Assignment
Miscellaneous functions
Availability
UI, CTRL