Mike Burns
2009-Jul-22 23:56 UTC
[Ovirt-devel] [PATCH][NODE] Cleanup old bridges when re-running o-c-networking
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
Darryl L. Pierce
2009-Jul-23 13:29 UTC
[Ovirt-devel] [PATCH][NODE] Cleanup old bridges when re-running o-c-networking
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-develACK. -- 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>
Possibly Parallel Threads
- [PATCH] fix augtool calls
- [PATCH node] Don't start ntp daemons until networking is started
- [PATCH node] add network.py script
- [PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
- [PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries