[Ovirt-devel] [PATCH node] no longer send macs to server when retreiving net device config (not necessary)

Mohammed Morsi mmorsi at redhat.com
Thu Mar 26 02:26:51 UTC 2009


---
 scripts/ovirt-early |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/scripts/ovirt-early b/scripts/ovirt-early
index 9ab2981..6693175 100755
--- a/scripts/ovirt-early
+++ b/scripts/ovirt-early
@@ -13,11 +13,6 @@
 BONDING_MODCONF_FILE=/etc/modprobe.d/bonding
 AUGTOOL_CONFIG=/var/tmp/augtool-config
 
-get_mac_addresses() {
-    macs=$(ifconfig | awk '/HWaddr/ { print $5"="$1 }' \
-                    | tr '\n' ' ' | sed 's/ /%2C/g;s/:/%3A/g')
-}
-
 configure_from_network() {
     DEVICE=$1
     if [ -n "$DEVICE" ]; then
@@ -37,10 +32,8 @@ configure_from_network() {
                 if [ -n "$SRV_HOST" -a -n "$SRV_PORT" ]; then
                     log "oVirt Server found at: $SRV_HOST:$SRV_PORT"
                     cfgdb=$(mktemp)
-                    get_mac_addresses
-                    log "MACs to use: $macs"
                     wget -O $cfgdb --no-check-certificate \
-                      "http://$SRV_HOST:$SRV_PORT/ovirt/managed_node/config?host=$(hostname)&macs=$macs"
+                      "http://$SRV_HOST:$SRV_PORT/ovirt/managed_node/config?host=$(hostname)"
                     if [ $? -eq 0 ]; then
                         log "Remote configuration bundle retrieved to $cfgdb"
                         ovirt-process-config $cfgdb $BONDING_MODCONF_FILE $AUGTOOL_CONFIG
-- 
1.6.0.6




More information about the ovirt-devel mailing list