Same change but in the network function

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>