Antoni Segura Puimedon has uploaded a new change for review.
Change subject: netconf: Make vdsm-restore-net-config use _inRollback
......................................................................
netconf: Make vdsm-restore-net-config use _inRollback
Change-Id: Iee212bdd6bbf5bcc27dc0a85b2fe6f690ac6dcd0
Signed-off-by: Antoni S. Puimedon <asegurap(a)redhat.com>
---
M vdsm/vdsm-restore-net-config
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/77/21977/1
diff --git a/vdsm/vdsm-restore-net-config b/vdsm/vdsm-restore-net-config
index 29b2a8d..4227e4e 100755
--- a/vdsm/vdsm-restore-net-config
+++ b/vdsm/vdsm-restore-net-config
@@ -48,7 +48,8 @@
removeBonds[bond] = {'remove': True}
logging.debug('Removing all networks (%s) and bonds (%s) in running '
'config.', removeNetworks, removeBonds)
- setupNetworks(removeNetworks, removeBonds, connectivityCheck=False)
+ setupNetworks(removeNetworks, removeBonds, connectivityCheck=False,
+ _inRollback=True)
configurator.flush()
persistentConfig = PersistentConfig()
@@ -56,7 +57,7 @@
bonds = persistentConfig.bonds
logging.debug('Calling setupNetworks with networks (%s) and bond (%s).',
nets, bonds)
- setupNetworks(nets, bonds, connectivityCheck=False)
+ setupNetworks(nets, bonds, connectivityCheck=False, _inRollback=True)
def restore():
--
To view, visit
http://gerrit.ovirt.org/21977
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iee212bdd6bbf5bcc27dc0a85b2fe6f690ac6dcd0
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <asegurap(a)redhat.com>