[Ovirt-devel] [PATCH node] Remove code that allowed ovirtbr0 to show up.
Darryl L. Pierce
dpierce at redhat.com
Wed Jan 21 19:34:05 UTC 2009
Our method for naming bridges is to prepend "ovirtbr" to the name of the
physical interface. This patch removes the previous practice of removing
the first 3 letters from the interface name.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
scripts/ovirt-early | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/ovirt-early b/scripts/ovirt-early
index 8422893..b098ba1 100755
--- a/scripts/ovirt-early
+++ b/scripts/ovirt-early
@@ -61,7 +61,7 @@ configure_from_network() {
# bridge each ethernet device in the system
ETHDEVS=$(cd /sys/class/net && ls -d eth*)
for eth in $ETHDEVS; do
- BRIDGE=ovirtbr`echo $eth | cut -b4-`
+ BRIDGE=ovirtbr$eth
log "Applying default configuration to $eth and $BRIDGE"
printf '%s\n' "DEVICE=$eth" ONBOOT=yes "BRIDGE=$BRIDGE" \
> /etc/sysconfig/network-scripts/ifcfg-$eth
--
1.6.0.6
More information about the ovirt-devel
mailing list