[Ovirt-devel] [PATCH][NODE] Cleanup old bridges when re-running o-c-networking
Darryl L. Pierce
dpierce at redhat.com
Thu Jul 23 13:29:59 UTC 2009
On Wed, Jul 22, 2009 at 07:56:44PM -0400, Mike Burns wrote:
> From: Michael Burns <mburns at redhat.com>
>
> Detects and removes existing bridges named breth*
>
> Resolves rhbz#513062
>
> Signed-off-by: Michael Burns <mburns at redhat.com>
> ---
> scripts/ovirt-config-networking | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking
> index cc7626b..837d493 100755
> --- a/scripts/ovirt-config-networking
> +++ b/scripts/ovirt-config-networking
> @@ -515,5 +515,10 @@ stop_log
>
> if [ "$net_configured" = 1 ]; then
> service network stop > /dev/null 2>&1
> + for i in `brctl show | grep breth | awk '{print $1}'`
> + do
> + ifconfig $i down
> + brctl delbr $i
> + done
> service network start
> fi
> --
> 1.6.2.5
>
> _______________________________________________
> 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.
Virtual Machine Management - http://www.ovirt.org/
Is fearr Gaeilge bhriste ná Béarla cliste.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090723/75ac2434/attachment.sig>
More information about the ovirt-devel
mailing list