Fix subnet match in network detection (bnc#854783)

Signed-off-by: Tim Serong <tserong@suse.com>