We already have an Internet Reachability Test. It is big. https://github.com/yast/yast-network/blob/master/src/clients/inst_do_net_test.rb I don't know whether it it still used.