support for ipv6
[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=static
49      IPV6INIT=yes
50      IPV6ADDR="2001:db8:0:2::1/64"
51      NAME=eth1
52      DEVICE=eth1
53      ONBOOT=yes
54      NM_CONTROLLED=no
55    path: /etc/sysconfig/network-scripts/ifcfg-eth1
56    permissions: '0755'
57    owner: root:root
58  - content: |
59      interface eth1
60      {
61         AdvSendAdvert on;
62         MinRtrAdvInterval 3;
63         MaxRtrAdvInterval 10;
64         AdvHomeAgentFlag off;
65         AdvManagedFlag on;
66         AdvOtherConfigFlag on;
67         prefix 2001:db8:0:2::/64
68         {
69             AdvOnLink on;
70             ### On link tells the host that the default router is on the same "link" as it is
71             AdvAutonomous on;
72             AdvRouterAddr off;
73         };
74      };
75    path: /etc/radvd.conf
76    permissions: '0644'
77    owner: root:root
78  - content: |
79      IPV6FORWARDING=yes
80    path: /etc/sysconfig/network
81    permissions: '0644'
82    owner: root:root