Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
net.ipv4.neigh.default.gc_thresh1=1024
net.ipv4.neigh.default.gc_thresh2=2048
net.ipv4.neigh.default.gc_thresh3=4096
12 changes: 12 additions & 0 deletions chef/cookbooks/neutron/recipes/common_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@
subscribes :run, resources(cookbook_file: disable_rp_filter_file), :delayed
end

neighbour_table_overflow_file = "/etc/sysctl.d/50-neutron-neighbour-table-overflow.conf"
cookbook_file neighbour_table_overflow_file do
source "sysctl-neighbour-table-overflow.conf"
mode "0644"
end

bash "reload neighbour-table-overflow.conf" do
code "/sbin/sysctl -e -q -p #{neighbour_table_overflow_file}"
action :nothing
subscribes :run, resources(cookbook_file: neighbour_table_overflow_file), :delayed
end

if neutron[:neutron][:networking_plugin] == "ml2" &&
(neutron[:neutron][:ml2_mechanism_drivers].include?("cisco_apic_ml2") ||
neutron[:neutron][:ml2_mechanism_drivers].include?("apic_gbp"))
Expand Down