This repository has been archived on 2026-11-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openstack-deployment/vxlan_sys_4789-check
T

18 lines
540 B
Bash

#!/bin/bash
while :
do
while [[ ! -e /sys/class/net/vxlan_sys_4789 ]]
do
if [[ -e /etc/sysconfig/network-scripts/ifcfg-vxlan_sys_4789 ]]
then
rm /etc/sysconfig/network-scripts/ifcfg-vxlan_sys_4789
fi
sleep 3
done
if [[ ! -e /etc/sysconfig/network-scripts/ifcfg-vxlan_sys_4789 ]]
then
ethtool -K vxlan_sys_4789 tx off
echo -e '# Managed by /opt/vxlan_sys_4789-check\nDEVICE="vxlan_sys_4789"\nETHTOOL_OPTS="-K ${DEVICE} tx off"' > /etc/sysconfig/network-scripts/ifcfg-vxlan_sys_4789
fi
sleep 3
done