[Ovirt-devel] [PATCH node] remove vlans properly when changing network settings

Darryl L. Pierce dpierce at redhat.com
Wed Mar 3 20:37:22 UTC 2010


On Thu, Feb 11, 2010 at 11:19:30AM -0500, Joey Boggs wrote:
> ---
>  scripts/ovirt-config-networking |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking
> index 96e425f..f1958c0 100755
> --- a/scripts/ovirt-config-networking
> +++ b/scripts/ovirt-config-networking
> @@ -529,6 +529,13 @@ if ls "$WORKDIR"/augtool-* > /dev/null 2>&1 ; then
>      log "Configuring network"
>  
>      # delete existing scripts
> +    for vlan in /proc/net/vlan/*; do
> +        if [[ ! "${vlan}" =~ config ]]; then
> +            vlan=$(echo $vlan|awk -F "/" {'print $5'})
> +            vconfig rem $vlan
> +        fi
> +    done
> +
>      for script in /etc/sysconfig/network-scripts/ifcfg-*; do
>          if [[ ! "${script}" =~ ifcfg-lo ]]; then
>              ovirt_safe_delete_config $script
> -- 
> 1.6.6
> 
> _______________________________________________
> Ovirt-devel mailing list
> Ovirt-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/ovirt-devel

ACK.

-- 
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20100303/14a1897b/attachment.sig>


More information about the ovirt-devel mailing list