From 82881d06839023576389cb35db8cbe3d42d9c532 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Mon, 27 Aug 2018 04:58:03 +0200 Subject: [jump vnet] Fix udev rule event for older libvirt Older libvirt seems to raise 'change' events instead of 'add', so the MTU bump of the libvirt managed tap interfaces was not properly applied. Change-Id: Ie1a4f1c4f235ad4f83bf9ee218a40dcedc1ce914 Signed-off-by: Alexandru Avadanii --- mcp/scripts/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mcp/scripts') diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh index 5f1275dc5..016af2bcb 100644 --- a/mcp/scripts/lib.sh +++ b/mcp/scripts/lib.sh @@ -550,7 +550,7 @@ function wait_for { function do_udev_cfg { local _conf='/etc/udev/rules.d/99-opnfv-fuel-vnet-mtu.rules' # http://linuxaleph.blogspot.com/2013/01/how-to-network-jumbo-frames-to-kvm-guest.html - echo 'SUBSYSTEM=="net", ACTION=="add", KERNEL=="vnet*", RUN+="/sbin/ip link set mtu 9000 dev '"'"%k"'"'"' |& sudo tee "${_conf}" + echo 'SUBSYSTEM=="net", ACTION=="add|change", KERNEL=="vnet*", ATTR{mtu}="9000"' |& sudo tee "${_conf}" sudo udevadm control --reload || true } -- cgit 1.2.3-korg