Add IP address for each interface in systemusage's InfoTree
Summary
The systemusage
quiddity gets information on received and transmitted packets for each network interface on the system. This information is grafted in the quiddity's infotree.
Each network interace is referenced by name. However, this information does not indicate what is the IP address associated with each interface. It would be nice to have the IP address also included as part of the information related to the network interface.
How would you like the feature to work ?
A simple proposition would be to add a key-value pair ip_address: 192.168.0.1
for each interface.
Example of an InfoTree with this information:
"net" : {
"lo" : {
"ip_address": "127.0.0.1",
"rx_rate" : "16533",
"rx_bytes" : "1448899635",
"rx_packets" : "2075973",
"rx_errors" : "0",
"rx_drop" : "0",
"tx_rate" : "16533",
"tx_bytes" : "1448899635",
"tx_packets" : "2075973",
"tx_errors" : "0",
"tx_drop" : "0"
},
"eno1" : {
"ip_address": "192.168.0.1",
"rx_rate" : "1490",
"rx_bytes" : "5797101038",
"rx_packets" : "9932307",
"rx_errors" : "0",
"rx_drop" : "44702",
"tx_rate" : "5412",
"tx_bytes" : "628529054",
"tx_packets" : "2670878",
"tx_errors" : "0",
"tx_drop" : "0"
}
}
Why is this feature important to you ?
Scenic needs this information in order to display the proper network diagnostics in its interface. Having information on packets is good, but having the associated IP address as well as the interface name is necessary in order to have a complete understanding of the current network situation, especially in contexts of live events.
Impact of non completion
Users have less information, and must rely on alternative methods in order to know what IP address is associated with which interface. This is especially bad for machines with multiple netowrk interfaces.