Added a function to find subnet devices.

Added a function to find subnet devices.