[Ovirt-devel] [PATCH node] Remove code that allowed ovirtbr0 to show up.

Perry Myers pmyers at redhat.com
Wed Jan 21 20:20:56 UTC 2009


Darryl L. Pierce wrote:
> 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

looks good to me, ack

-- 
|=-        Red Hat, Engineering, Emerging Technologies, Boston        -=|
|=-                     Email: pmyers at redhat.com                      -=|
|=-         Office: +1 412 474 3552   Mobile: +1 703 362 9622         -=|
|=- GnuPG: E65E4F3D 88F9 F1C9 C2F3 1303 01FE 817C C5D2 8B91 E65E 4F3D -=|




More information about the ovirt-devel mailing list