bugfix: enable_ipv6_testcase_with_mitaka_in_compass 37/20437/3
authorrexlee8776 <limingjiang@huawei.com>
Sun, 4 Sep 2016 22:31:18 +0000 (22:31 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Tue, 6 Sep 2016 11:24:18 +0000 (11:24 +0000)
JIRA: YARDSTICK-317

Change-Id: I2757840b29dad80fccbcd7c51e66700544086f05
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
yardstick/benchmark/scenarios/networking/ping6_metadata.txt
yardstick/benchmark/scenarios/networking/ping6_post_teardown.bash
yardstick/benchmark/scenarios/networking/ping6_pre_setup.bash
yardstick/benchmark/scenarios/networking/ping6_setup.bash

index 5dc08d3..82accbf 100644 (file)
@@ -45,7 +45,11 @@ write_files:
    owner: root:root
  - content: |
      TYPE="Ethernet"
-     BOOTPROTO=static
+     BOOTPROTO="dhcp"
+     DEFROUTE="no"
+     PEERDNS="no"
+     PEERROUTES="no"
+     IPV4_FAILURE_FATAL="no"
      IPV6INIT=yes
      IPV6ADDR="2001:db8:0:2::1/64"
      NAME=eth1
@@ -56,6 +60,15 @@ write_files:
    permissions: '0755'
    owner: root:root
  - content: |
+     interface eth0
+     {
+        AdvSendAdvert on;
+        MinRtrAdvInterval 3;
+        MaxRtrAdvInterval 10;
+        AdvDefaultLifetime 0;
+        route 2001:db8:0:2::/64 {
+        };
+     };
      interface eth1
      {
         AdvSendAdvert on;
@@ -79,4 +92,4 @@ write_files:
      IPV6FORWARDING=yes
    path: /etc/sysconfig/network
    permissions: '0644'
-   owner: root:root
\ No newline at end of file
+   owner: root:root
index f40d47d..a0976e3 100644 (file)
@@ -8,10 +8,7 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
-sed -i 's/enable_security_group= False/enable_security_group = True/g' /etc/neutron/plugins/ml2/ml2_conf.ini
-sed -i 3d /etc/neutron/plugins/ml2/ml2_conf.ini
-sed -i 's/firewall_driver= neutron.agent.firewall.NoopFirewallDriver/firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver/g' /etc/neutron/plugins/ml2/ml2_conf.ini
-sed -i 's/security_group_api= nova/security_group_api = neutron/g' /etc/nova/nova.conf
+cp /etc/neutron/plugins/ml2/ml2_conf.ini_bkp /etc/neutron/plugins/ml2/ml2_conf.ini
 
 service neutron-l3-agent restart
 service neutron-dhcp-agent restart
@@ -23,4 +20,4 @@ service nova-conductor restart
 service nova-consoleauth restart
 service nova-novncproxy restart
 service nova-scheduler restart
-service nova-compute restart
\ No newline at end of file
+service nova-compute restart
index 4a781d2..e790a07 100644 (file)
@@ -9,12 +9,11 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
-sed -i 's/enable_security_group = True/enable_security_group= False/g' /etc/neutron/plugins/ml2/ml2_conf.ini
-sed -i '2a extension_drivers = port_security' /etc/neutron/plugins/ml2/ml2_conf.ini
+cp /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini_bkp
+sed -i '83a prevent_arp_spoofing = False' /etc/neutron/plugins/ml2/ml2_conf.ini
 sed -i 's/firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver/firewall_driver= neutron.agent.firewall.NoopFirewallDriver/g' /etc/neutron/plugins/ml2/ml2_conf.ini
-sed -i 's/security_group_api = neutron/security_group_api= nova/g' /etc/nova/nova.conf
-
 
+# restart nova and neutron service
 service neutron-l3-agent restart
 service neutron-dhcp-agent restart
 service neutron-metadata-agent restart
index 658e1d3..b2f324f 100644 (file)
@@ -24,8 +24,8 @@ neutron router-create ipv6-router
 
 
 # create (ipv4,ipv6)router and net and subnet
-neutron net-create --port_security_enabled=False ipv4-int-network1
-neutron net-create --port_security_enabled=False ipv6-int-network2
+neutron net-create ipv4-int-network1
+neutron net-create ipv6-int-network2
 
 # Create IPv4 subnet and associate it to ipv4-router
 neutron subnet-create --name ipv4-int-subnet1 \