From 7cc586af4403b4aaf42c521e8a488399bbaf6104 Mon Sep 17 00:00:00 2001 From: Sreejith Punnapuzha Date: Wed, 29 May 2019 14:45:59 -0500 Subject: [PATCH] make bridge-nf configurations persistent This PS makes bridge-nf configuration persisten as part of setup_gate.sh Change-Id: Ic8a4f231d277716152dfe029e1961f165a7dec11 Signed-off-by: Sreejith Punnapuzha --- tools/multi_nodes_gate/setup_gate.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/multi_nodes_gate/setup_gate.sh b/tools/multi_nodes_gate/setup_gate.sh index 39ec5135..c176f874 100755 --- a/tools/multi_nodes_gate/setup_gate.sh +++ b/tools/multi_nodes_gate/setup_gate.sh @@ -95,11 +95,12 @@ if [[ ! -d ${VIRSH_POOL_PATH} ]]; then fi log_stage_header "Disabling br_netfilter" -br_netfilter_files=('bridge-nf-call-arptables' 'bridge-nf-call-iptables' 'bridge-nf-call-ip6tables') -for br_netfilter_file in "${br_netfilter_files[@]}" -do - sudo sh -c "(echo "0" > /proc/sys/net/bridge/${br_netfilter_file})" -done +cat << EOF | sudo tee /etc/sysctl.d/60-bridge.conf +net.bridge.bridge-nf-call-ip6tables = 0 +net.bridge.bridge-nf-call-iptables = 0 +net.bridge.bridge-nf-call-arptables = 0 +EOF +sudo sysctl -p /etc/sysctl.d/60-bridge.conf if [[ ${REQUIRE_RELOG} -eq 1 ]]; then echo