virttest: Some minor fix for utils_net.py

Fix error of referenced before defined.

Signed-off-by: Shuping Cui <scui@redhat.com>
Merge pull request #1535 from spcui/utils_net

virttest: Some minor fix for utils_net.py