4a781d21ecb5b1a7ae41b372622fa3a1a6b65bb2
[yardstick.git] / yardstick / benchmark / scenarios / networking / ping6_pre_setup.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 sed -i 's/enable_security_group = True/enable_security_group= False/g' /etc/neutron/plugins/ml2/ml2_conf.ini
13 sed -i '2a extension_drivers = port_security' /etc/neutron/plugins/ml2/ml2_conf.ini
14 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
15 sed -i 's/security_group_api = neutron/security_group_api= nova/g' /etc/nova/nova.conf
16
17
18 service neutron-l3-agent restart
19 service neutron-dhcp-agent restart
20 service neutron-metadata-agent restart
21 service neutron-server restart
22 service nova-api restart
23 service nova-cert restart
24 service nova-conductor restart
25 service nova-consoleauth restart
26 service nova-novncproxy restart
27 service nova-scheduler restart
28 service nova-compute restart