[Ovirt-devel] [PATCH node] display network interface driver name and MAC
Alan Pevec
apevec at redhat.com
Fri Jul 10 11:30:14 UTC 2009
to help identifying
---
scripts/ovirt-config-networking | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking
index 2201369..8380187 100755
--- a/scripts/ovirt-config-networking
+++ b/scripts/ovirt-config-networking
@@ -351,6 +351,19 @@ else
printf "Configuring the network will destroy any existing networking\n"
printf "configuration on this system.\n"
printf "***** WARNING *****\n"
+ pixied=false
+ for nic in $NICS; do
+ driver=$(basename $(readlink /sys/class/net/$nic/device/driver))
+ mac=$(cat /sys/class/net/$nic/address)
+ if [ "$nic" = "$OVIRT_BOOTIF" ]; then
+ nic="*$nic"
+ pixied=true
+ fi
+ printf "%s\t%s\t%s\n" $nic $driver $mac
+ done
+ if $pixied; then
+ printf "*=PXE boot interface\n"
+ fi
DNS="DNS"
NTP="NTP"
--
1.6.0.6
More information about the ovirt-devel
mailing list