Skip to content

Commit

Permalink
some
Browse files Browse the repository at this point in the history
  • Loading branch information
cherusk committed Nov 28, 2023
1 parent ce2e58f commit f8e1be8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/maskfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ __ssh_cmd="ssh -o UserKnownHostsFile=/dev/null -o GlobalKnownHostsFile=/dev/null
__source_vm_ip_address=($(${__kcli_cmd} "list vm" | grep 'micro_stack' | grep 'source' | awk -F\| '{ print $4 }' | xargs))
__sink_vm_ip_address=($(${__kcli_cmd} "list vm" | grep 'micro_stack' | grep 'sink' | awk -F\| '{ print $4 }' | xargs))

__sink_vm_test_iface_ip_address=($("${__ssh_cmd}" "godon_robot@${__sink_vm_ip_address}" "ip --json a show dev ens8 | jq '.[0].addr_info[0].local'"))
__sink_vm_test_iface_ip_address=($(${__ssh_cmd} "godon_robot@${__sink_vm_ip_address}" "ip --json a show dev ens8 | jq '.[0].addr_info[0].local'"))

"${__ssh_cmd}" "godon_robot@${__sink_vm_ip_address}" "systemctl stop test-server; systemctl start test-server"
${__ssh_cmd} "godon_robot@${__sink_vm_ip_address}" "systemctl stop test-server; systemctl start test-server"

"${__ssh_cmd}" "godon_robot@${__source_vm_ip_address}" "echo "SINK_IP=${__sink_vm_test_iface_ip_address}" > /opt/sink_ip"
"${__ssh_cmd}" "godon_robot@${__source_vm_ip_address}" "systemctl stop test-client; systemctl start test-client"
${__ssh_cmd} "godon_robot@${__source_vm_ip_address}" "echo "SINK_IP=${__sink_vm_test_iface_ip_address}" > /opt/sink_ip"
${__ssh_cmd} "godon_robot@${__source_vm_ip_address}" "systemctl stop test-client; systemctl start test-client"


~~~
Expand Down

0 comments on commit f8e1be8

Please sign in to comment.