from .. import print_section_start, print_section_end
from ..xlate import XLATOR
-__version__ = '0.2.7'
+__version__ = '0.2.8'
LOG = logging.getLogger(__name__)
echo
/usr/sbin/ip route show
echo
+ echo "NetworkManager connections:
+ echo
+ /bin/nmcli connection show
+
+ echo
+ echo "-----------------------------------------------------------"
+ echo "Networking config files:"
+ echo
+ echo "Searching for file like /etc/sysconfig/network-scripts/ifcfg-* ..."
+ for f in /etc/sysconfig/network-scripts/ifcfg-* ; do
+ if [ ! -f "${f}" ] ; then
+ continue
+ fi
+ base_name=$( basename "${f}" )
+ if [ "${base_name}" = 'ifcfg-lo' ] ; then
+ continue
+ fi
+ echo "${f}:"
+ ls -l "${f}"
+ echo
+ echo "Content:"
+ echo "---------- snip ----------"
+ cat "${f}"
+ echo "---------- snip ----------"
+ echo "Removing ${f} ..."
+ rm -vf "${f}"
+ done
+ echo
+ echo "DHCP leases:"
+ echo
+ echo "Searching for file like /var/lib/dhclient/*.leases ..."
+ for f in /var/lib/dhclient/*.leases ; do
+ if [ ! -f "${f}" ] ; then
+ continue
+ fi
+ echo "${f}:"
+ ls -l "${f}"
+ echo
+ echo "Content:"
+ echo "---------- snip ----------"
+ cat "${f}"
+ echo "---------- snip ----------"
+ echo "Removing ${f} ..."
+ rm -vf "${f}"
+ done
""").replace('@@@LOGFILES@@@', ' '.join(logfiles))