[node-patches] Change in ovirt-node[master]: Just remove bond configuration when they exist.

hadong0720 at gmail.com hadong0720 at gmail.com
Thu Aug 15 08:28:12 UTC 2013


hadong has uploaded a new change for review.

Change subject: Just remove bond configuration when they exist.
......................................................................

Just remove bond configuration when they exist.

Change-Id: I2b5644168f332df4440b16e6b91c7b01f16cb6bd
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirt/node/config/defaults.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/63/18163/1

diff --git a/src/ovirt/node/config/defaults.py b/src/ovirt/node/config/defaults.py
index d416fbb..3222323 100644
--- a/src/ovirt/node/config/defaults.py
+++ b/src/ovirt/node/config/defaults.py
@@ -299,7 +299,8 @@
                         NicConfig(bifname).delete()
 
                 bonds = Bonds()
-                bonds.delete_all()
+                if bonds.is_enabled:
+                    bonds.delete_all()
 
             def _remove_ifcfg_configs(self):
                 pat = NicConfig.IfcfgBackend.filename_tpl % "*"


-- 
To view, visit http://gerrit.ovirt.org/18163
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2b5644168f332df4440b16e6b91c7b01f16cb6bd
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list