From a38868f9cb33ef66bf376c7e6577a89ebbe95721 Mon Sep 17 00:00:00 2001
From: Sam Yaple <sam@yaple.net>
Date: Wed, 7 Oct 2015 07:03:45 +0000
Subject: [PATCH] Fix wrong sysctl variable name (part 2)

Change-Id: I8e4c9beb90a0b289f56947ca6292f6455e26e07b
Closes-Bug: #1503416
---
 ansible/roles/neutron/tasks/config.yml | 2 +-
 ansible/roles/nova/tasks/config.yml    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ansible/roles/neutron/tasks/config.yml b/ansible/roles/neutron/tasks/config.yml
index 258f7d383..90ecf80ff 100644
--- a/ansible/roles/neutron/tasks/config.yml
+++ b/ansible/roles/neutron/tasks/config.yml
@@ -4,7 +4,7 @@
   when: inventory_hostname in groups['neutron-agents']
 
 - name: Disabling reverse path filter on network node
-  sysctl: name="net.ipv4.{{ item }}.rp_filter" value=0 sysctl_set=yes
+  sysctl: name="net.ipv4.conf.{{ item }}.rp_filter" value=0 sysctl_set=yes
   with_items:
     - "all"
     - "default"
diff --git a/ansible/roles/nova/tasks/config.yml b/ansible/roles/nova/tasks/config.yml
index 33de6ec0f..29f308e5d 100644
--- a/ansible/roles/nova/tasks/config.yml
+++ b/ansible/roles/nova/tasks/config.yml
@@ -1,13 +1,13 @@
 ---
 - name: Disabling netfilter for bridges
-  sysctl: name="net.bridge-nf-call-{{ item }}" value=1 sysctl_set=yes
+  sysctl: name="net.bridge.bridge-nf-call-{{ item }}" value=1 sysctl_set=yes
   with_items:
     - "iptables"
     - "ip6tables"
   when: inventory_hostname in groups['compute']
 
 - name: Disabling reverse path filter on compute node
-  sysctl: name="net.ipv4.{{ item }}.rp_filter" value=0 sysctl_set=yes
+  sysctl: name="net.ipv4.conf.{{ item }}.rp_filter" value=0 sysctl_set=yes
   with_items:
     - "all"
     - "default"
-- 
GitLab