Change in vdsm[master]: netwiring: [2/3] Add API definitions.

asegurap at redhat.com asegurap at redhat.com
Thu Nov 29 01:26:38 UTC 2012


Antoni Segura Puimedon has uploaded a new change for review.

Change subject: netwiring: [2/3] Add API definitions.
......................................................................

netwiring: [2/3] Add API definitions.

Second of the Network Wiring feature patches. It adds the cli support
for using the new updateVmDevice feature.

Change-Id: I637b3f584e28afc5ada6496abbb6f61aadb8d64f
Signed-off-by: Antoni S. Puimedon <asegurap at redhat.com>
---
M vdsm_cli/vdsClient.py
1 file changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/61/9561/1

diff --git a/vdsm_cli/vdsClient.py b/vdsm_cli/vdsClient.py
index 8cb78ed..f188825 100644
--- a/vdsm_cli/vdsClient.py
+++ b/vdsm_cli/vdsClient.py
@@ -205,6 +205,10 @@
 
         return self.ExecAndExit(self.s.create(params))
 
+    def updateVmDevice(self, args):
+        return self.ExecAndExit(self.s.updateVmDevice(args[0],
+                                                      self._eqSplit(args[1:])))
+
     def hotplugNic(self, args):
         nic = self._parseDriveSpec(args[1])
         nic['type'] = 'interface'
@@ -1737,6 +1741,16 @@
                         'http://libvirt.org/formatdomain.html'
                          '#elementsCPUTuning'
                         )),
+        'updateVmDevice':  (serv.updateVmDevice,
+                         ('<vmId> <devicespec>',
+                          'Update a VM\'s device',
+                          'devicespec parameters list: r=required, o=optional',
+                          'r   type: interface',
+                          'r   network: network name',
+                          'r   linkState: up|down',
+                          'r   alias: libvirt\'s vnic alias',
+                          'o   promisc: <blue|red> - Network traffic to mirror'
+                          )),
         'hotplugNic':  (serv.hotplugNic,
                          ('<vmId> <nicspec>',
                           'Hotplug NIC to existing VM',


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I637b3f584e28afc5ada6496abbb6f61aadb8d64f
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <asegurap at redhat.com>


More information about the vdsm-patches mailing list