Skip to content

Commit

Permalink
ovs: load kernel module ip_tables only when it exists (#3281)
Browse files Browse the repository at this point in the history
Signed-off-by: 张祖建 <[email protected]>
  • Loading branch information
zhangzujian committed Oct 8, 2023
1 parent 5cc81da commit 1e5d80c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/images/start-ovs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ FLOW_LIMIT=${FLOW_LIMIT:-10}
# Check required kernel module
modinfo openvswitch
modinfo geneve
modinfo ip_tables

# CentOS 8 might not load iptables module by default, which will hurt nat function
modprobe ip_tables
if modinfo ip_tables; then
modprobe ip_tables
fi

# https://bugs.launchpad.net/neutron/+bug/1776778
if grep -q "3.10.0-862" /proc/version
Expand Down

0 comments on commit 1e5d80c

Please sign in to comment.