6df354a1bfd6eb5340cf6a859a3e4080a93fe3e8
[yardstick.git] / yardstick / benchmark / scenarios / networking / ping6_benchmark.bash
1 #!/bin/bash
2
3 ##############################################################################
4 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 # Run a single ping6 command towards a ipv6 router
13
14 set -e
15
16 # TODO find host
17 sudo ip netns exec qdhcp-$(neutron net-list | grep -w ipv4-int-network1 | awk '{print $2}') bash
18 # TODO find VM ip
19 ssh -i vRouterkey fedora@20.0.0.4
20 ping6 -c 1 2001:db8:0:1::1 | grep ttl | awk -F [=\ ] '{printf $10}'