[Generic] Add net method

Signed-off-by: Hansen Fang <fhz0730@gmail.com>