bugfix: ipv6 in mitaka ping6 fail in compass
[yardstick.git] / yardstick / benchmark / scenarios / networking / ping6_metadata.txt
1 #cloud-config
2 bootcmd:
3   - /usr/sbin/ifdown eth0
4   - /usr/sbin/ifup eth0
5   - /usr/sbin/ifdown eth1
6   - ip link set dev eth0 mtu 1300
7   - ip link set dev eth1 mtu 1300
8   - /usr/sbin/ifup eth1
9   - ip link set dev eth0 mtu 1300
10   - ip link set dev eth1 mtu 1300
11   - setenforce 0
12   - /sbin/sysctl -w net.ipv6.conf.all.forwarding=1
13   - /sbin/sysctl -w net.ipv6.conf.eth0.accept_ra=2
14   - /sbin/sysctl -w net.ipv6.conf.eth0.accept_ra_defrtr=1
15   - /sbin/sysctl -w net.ipv6.conf.eth0.router_solicitations=1
16 packages:
17   - radvd
18 runcmd:
19   - /usr/sbin/ifdown eth1
20   - /usr/sbin/ifup eth1
21   - ip link set dev eth0 mtu 1300
22   - ip link set dev eth1 mtu 1300
23   - /usr/bin/systemctl disable NetworkManager
24   - /usr/bin/systemctl start radvd
25   - echo 'complete' >> /tmp/cloud-config.log
26 write_files:
27  - content: |
28      TYPE="Ethernet"
29      BOOTPROTO="dhcp"
30      DEFROUTE="yes"
31      PEERDNS="yes"
32      PEERROUTES="yes"
33      IPV4_FAILURE_FATAL="no"
34      IPV6INIT="yes"
35      IPV6_AUTOCONF="yes"
36      IPV6_DEFROUTE="yes"
37      IPV6_PEERROUTES="yes"
38      IPV6_PEERDNS="yes"
39      IPV6_FAILURE_FATAL="no"
40      NAME="eth0"
41      DEVICE="eth0"
42      ONBOOT="yes"
43    path: /etc/sysconfig/network-scripts/ifcfg-eth0
44    permissions: '0755'
45    owner: root:root
46  - content: |
47      TYPE="Ethernet"
48      BOOTPROTO="dhcp"
49      DEFROUTE="no"
50      PEERDNS="no"
51      PEERROUTES="no"
52      IPV4_FAILURE_FATAL="no"
53      IPV6INIT=yes
54      IPV6ADDR="2001:db8:0:2::1/64"
55      NAME=eth1
56      DEVICE=eth1
57      ONBOOT=yes
58      NM_CONTROLLED=no
59    path: /etc/sysconfig/network-scripts/ifcfg-eth1
60    permissions: '0755'
61    owner: root:root
62  - content: |
63      interface eth1
64      {
65         AdvSendAdvert on;
66         MinRtrAdvInterval 3;
67         MaxRtrAdvInterval 10;
68         AdvHomeAgentFlag off;
69         AdvManagedFlag on;
70         AdvOtherConfigFlag on;
71         prefix 2001:db8:0:2::/64
72         {
73             AdvOnLink on;
74             ### On link tells the host that the default router is on the same "link" as it is
75             AdvAutonomous on;
76             AdvRouterAddr off;
77         };
78      };
79    path: /etc/radvd.conf
80    permissions: '0644'
81    owner: root:root
82  - content: |
83      IPV6FORWARDING=yes
84    path: /etc/sysconfig/network
85    permissions: '0644'
86    owner: root:root