fix some bug in ipv6 to make it run in ci
[yardstick.git] / yardstick / benchmark / scenarios / networking / ping6_post_teardown.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 sed -i 's/enable_security_group= False/enable_security_group = True/g' /etc/neutron/plugins/ml2/ml2_conf.ini
12 sed -i 3d /etc/neutron/plugins/ml2/ml2_conf.ini
13 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
14 sed -i 's/security_group_api= nova/security_group_api = neutron/g' /etc/nova/nova.conf
15
16 service neutron-l3-agent restart
17 service neutron-dhcp-agent restart
18 service neutron-metadata-agent restart
19 service neutron-server restart
20 service nova-api restart
21 service nova-cert restart
22 service nova-conductor restart
23 service nova-consoleauth restart
24 service nova-novncproxy restart
25 service nova-scheduler restart
26 service nova-compute restart