Dan Kenigsberg has uploaded a new change for review.
Change subject: net: maintain legacy addNetwork/delNetwork APIs
......................................................................
net: maintain legacy addNetwork/delNetwork APIs
commits 43a6b9 and 167b02 changed the signature of addNetwork and
delNetwork respectively. This must not happen, as Engine 3.5 uses
argument names in its API.
With
http://www.ovirt.org/Features/HostNetworkingApi implemented in
engine-3.6, no one is going to call Vdsm's addNetwork/delNetwork any
more. However, we must keep backward compatibility as long as engine-3.5
is supported.
Bug-Url:
https://bugzilla.redhat.com/1229632
Change-Id: I2eaf2b41e3e1c88721d855af0ccc3abd6c200034
Signed-off-by: Dan Kenigsberg <danken(a)redhat.com>
---
M vdsm/API.py
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/87/43187/1
diff --git a/vdsm/API.py b/vdsm/API.py
index 89f35ac..eafceb7 100644
--- a/vdsm/API.py
+++ b/vdsm/API.py
@@ -1453,13 +1453,14 @@
finally:
self._cif._networkSemaphore.release()
- def addNetwork(self, network, vlan=None, bond=None, nics=None,
+ def addNetwork(self, bridge, vlan=None, bond=None, nics=None,
options=None):
"""Add a new network to this vds.
Network topology is network--[vlan--][bond--]nics.
vlan(number) and bond are optional - pass the empty string to discard
them. """
+ network = bridge
if options is None:
options = {}
@@ -1501,9 +1502,10 @@
finally:
self._cif._networkSemaphore.release()
- def delNetwork(self, network, vlan=None, bond=None, nics=None,
+ def delNetwork(self, bridge, vlan=None, bond=None, nics=None,
options=None):
"""Delete a network from this vds."""
+ network = bridge
if options is None:
options = {}
self.translateNetOptionsToNew(options)
--
To view, visit
https://gerrit.ovirt.org/43187
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2eaf2b41e3e1c88721d855af0ccc3abd6c200034
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <danken(a)redhat.com>