core: Add a warning comment for listNetworkInterfaces() function

Change-Id: I2d0edaa4fced667cd79d8f7170c4a2968abd0390
Refs: #2292