Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1869886: Fix to configure vmxnet3 driver in multicast mode #2007

Merged
merged 1 commit into from
Aug 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions templates/common/_base/files/configure-ovs-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ contents:
# key files under /etc/NetworkManager/system-connections/
# Managing key files is outside of the scope of this script

# if the interface is of type vmxnet3 add multicast capability for that driver
# REMOVEME: Once BZ:1854355 is fixed, this needs to get removed.
function configure_driver_options {
abhat marked this conversation as resolved.
Show resolved Hide resolved
intf=$1
driver=$(cat "/sys/class/net/${intf}/device/uevent" | grep DRIVER | awk -F "=" '{print $2}')
echo "Driver name is" $driver
if [ "$driver" = "vmxnet3" ]; then
ifconfig "$intf" allmulti
fi
}

iface=""
counter=0
# find default interface
Expand All @@ -32,6 +43,10 @@ contents:
done

if [ "$iface" = "br-ex" ]; then
# handle vlans and bonds etc if they have already been
# configured via nm key files and br-ex is already up
ifaces=$(ovs-vsctl list-ifaces ${iface})
for intf in $ifaces; do configure_driver_options $intf; done
echo "Networking already configured and up for br-ex!"
exit 0
fi
Expand Down Expand Up @@ -99,6 +114,7 @@ contents:
if nmcli --fields GENERAL.STATE conn show ovs-if-br-ex | grep -i "activated"; then
echo "OVS successfully configured"
ip a show br-ex
configure_driver_options ${iface}
exit 0
fi
counter=$((counter+1))
Expand All @@ -110,6 +126,7 @@ contents:
if nmcli conn up ovs-if-br-ex; then
echo "OVS successfully configured"
ip a show br-ex
configure_driver_options ${iface}
exit 0
fi
sleep 5
Expand Down