aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/scripts
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2018-02-02 07:57:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-02 07:57:23 +0000
commitc2174cd6d489b9079faec3523f175725da08f9df (patch)
tree8b7e055ef982599fae1601aa6e5d0526aa9f54bf /mcp/scripts
parent6ccfee59ea7225cfc46227e7e874835dc75dc575 (diff)
parent574021257b89eda2b431e51121bbb11bd9d54988 (diff)
Merge "deploy.sh: Disable net.bridge.bridge-nf-call"
Diffstat (limited to 'mcp/scripts')
-rw-r--r--mcp/scripts/lib.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index d2ffaa659..d91dcc3e1 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -457,6 +457,15 @@ function wait_for {
)
}
+function do_sysctl_cfg {
+ local _conf='/etc/sysctl.d/99-opnfv-fuel-bridge.conf'
+ # https://wiki.libvirt.org/page/Net.bridge.bridge-nf-call_and_sysctl.conf
+ echo 'net.bridge.bridge-nf-call-arptables = 0' |& sudo tee "${_conf}"
+ echo 'net.bridge.bridge-nf-call-iptables = 0' |& sudo tee -a "${_conf}"
+ echo 'net.bridge.bridge-nf-call-ip6tables = 0' |& sudo tee -a "${_conf}"
+ sudo sysctl -q -p "${_conf}"
+}
+
function get_nova_compute_pillar_data {
local value=$(salt -C 'I@nova:compute and *01*' pillar.get _param:"${1}" --out yaml | cut -d ' ' -f2)
if [ "${value}" != "''" ]; then