generic.test.ping: make ping test support ipv6

This patch make ping test support using ipv6 address

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>