diff options
author | rexlee8776 <limingjiang@huawei.com> | 2016-09-23 03:39:07 +0000 |
---|---|---|
committer | rexlee8776 <limingjiang@huawei.com> | 2016-09-28 05:12:26 +0000 |
commit | 1f389fa4e814bda23fcb650a737ef2bff13aacf8 (patch) | |
tree | d380e1e85863baac8c95b25a10363647bac4a3e4 /yardstick/benchmark/scenarios/networking/ping6_pre_setup.bash | |
parent | 090d493c2247ee63c9f9509191b011d2ecfa921f (diff) |
ipv6 test case to de-coupling to fuel/compass
JIRA: YARDSTICK-358
1. plan to support fuel first
2. apex/joid situation will be taken care of
in another patch
Change-Id: Ia9293a2e925d874cc6182e975f563d92fb91a2c7
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'yardstick/benchmark/scenarios/networking/ping6_pre_setup.bash')
-rw-r--r-- | yardstick/benchmark/scenarios/networking/ping6_pre_setup.bash | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/yardstick/benchmark/scenarios/networking/ping6_pre_setup.bash b/yardstick/benchmark/scenarios/networking/ping6_pre_setup.bash index e790a0784..d50a800d7 100644 --- a/yardstick/benchmark/scenarios/networking/ping6_pre_setup.bash +++ b/yardstick/benchmark/scenarios/networking/ping6_pre_setup.bash @@ -9,9 +9,32 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -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 + +ML2_CONF_FILE="/etc/neutron/plugins/ml2/ml2_conf.ini" +NOVA_CONF_FILE="/etc/nova/nova.conf" + +cp $ML2_CONF_FILE ${ML2_CONF_FILE}_bkp + +agent_line_num=$(grep -n '\[agent\]' $ML2_CONF_FILE | awk -F [:] '{print $1}') +if [ -z "$agent_line_num" ] +then + echo "[agent]" >> ml2_conf.ini + agent_line_num=$(wc -l ml2_conf.ini | awk '{print $1}') +fi +sed -i "${agent_line_num}a prevent_arp_spoofing = False" $ML2_CONF_FILE + +sed -i 's/firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver/firewall_driver= neutron.agent.firewall.NoopFirewallDriver/g' $ML2_CONF_FILE + +#check parameters +echo "check if parameters ok" +echo $ML2_CONF_FILE +grep 'enable_security_group = True' $ML2_CONF_FILE +grep 'extension_drivers = port_security' $ML2_CONF_FILE +grep 'prevent_arp_spoofing = False' $ML2_CONF_FILE +echo $NOVA_CONF_FILE +grep 'security_group_api = neutron' $NOVA_CONF_FILE +grep 'firewall_driver = nova.virt.firewall.NoopFirewallDriver' $NOVA_CONF_FILE +echo "check parameters end" # restart nova and neutron service service neutron-l3-agent restart |