Lines Matching refs:ns0
719 local ns0 ns1 port
722 ns0="global0"
731 if ! vm_start "${pidfile}" "${ns0}"; then
735 vm_wait_for_ssh "${ns0}"
736 oops_before=$(vm_dmesg_oops_count "${ns0}")
737 warn_before=$(vm_dmesg_warn_count "${ns0}")
746 ip netns exec "${ns0}" socat UNIX-LISTEN:"${unixfile}",fork \
749 host_wait_for_listener "${ns0}" "${unixfile}" "unix"
751 vm_vsock_test "${ns0}" "server" 2 "${TEST_GUEST_PORT}"
752 vm_wait_for_listener "${ns0}" "${TEST_GUEST_PORT}" "tcp"
756 vm_dmesg_check "${pidfile}" "${ns0}" "${oops_before}" "${warn_before}"
771 local ns0="global0"
785 log_host "failed to start vm (cid=${VSOCK_CID}, ns=${ns0})"
795 echo TEST | ip netns exec "${ns0}" \
814 local ns0="global0"
827 log_host "Setup socat bridge from ns ${ns0} to ns ${ns1} over port ${port}"
831 ip netns exec "${ns0}" \
834 host_wait_for_listener "${ns0}" "${port}" "tcp"
845 if ! vm_start "${pidfile}" "${ns0}"; then
846 log_host "failed to start vm (cid=${cid}, ns=${ns0})"
852 vm_wait_for_ssh "${ns0}"
854 oops_before=$(vm_dmesg_oops_count "${ns0}")
855 warn_before=$(vm_dmesg_warn_count "${ns0}")
857 vm_vsock_test "${ns0}" "10.0.2.2" 2 "${port}"
860 vm_dmesg_check "${pidfile}" "${ns0}" "${oops_before}" "${warn_before}"
876 local ns0="global0"
895 if ! vm_start "${pidfile}" "${ns0}"; then
896 log_host "failed to start vm (cid=${cid}, ns=${ns0})"
902 vm_wait_for_ssh "${ns0}"
904 oops_before=$(vm_dmesg_oops_count "${ns0}")
905 warn_before=$(vm_dmesg_warn_count "${ns0}")
907 vm_ssh "${ns0}" -- \
910 vm_dmesg_check "${pidfile}" "${ns0}" "${oops_before}" "${warn_before}"
927 local ns0="local0"
942 log_host "failed to start vm (cid=${cid}, ns=${ns0})"
953 echo TEST | ip netns exec "${ns0}" \
973 local ns0="local0"
990 if ! vm_start "${pidfile}" "${ns0}"; then
991 log_host "failed to start vm (cid=${cid}, ns=${ns0})"
996 vm_wait_for_ssh "${ns0}"
997 oops_before=$(vm_dmesg_oops_count "${ns0}")
998 warn_before=$(vm_dmesg_warn_count "${ns0}")
1000 vm_ssh "${ns0}" -- \
1003 vm_dmesg_check "${pidfile}" "${ns0}" "${oops_before}" "${warn_before}"
1020 local ns0=$1
1035 log_host "Launching socat in ns ${ns0}"
1036 echo TEST | ip netns exec "${ns0}" socat STDIN VSOCK-CONNECT:1:"${port}" 2>/dev/null
1179 local ns0=$1
1188 if ! vm_start "${pidfile1}" "${ns0}"; then
1305 local ns0="global0"
1314 if ! vm_start "${pidfile}" "${ns0}"; then
1317 vm_wait_for_ssh "${ns0}"
1320 vm_ssh "${ns0}" -- \
1323 vm_wait_for_listener "${ns0}" "${port}" "vsock"
1337 ip netns del "${ns0}"
1341 ip netns del "${ns0}"