Fix bindings for PIF_set_MAC and PIF.set_MTU.
authorEwan Mellor <ewan@xensource.com>
Fri, 5 Jan 2007 12:33:23 +0000 (12:33 +0000)
committerEwan Mellor <ewan@xensource.com>
Fri, 5 Jan 2007 12:33:23 +0000 (12:33 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendAPI.py

index 2496bf84143725685f233bedd75c8fdda12a3e35..2da852c5dd083cdb595bfe30dec45984b8dece34 100644 (file)
@@ -593,10 +593,10 @@ class XendAPI:
         return xen_api_success(self._get_PIF(ref).set_name(name))
 
     def PIF_set_MAC(self, _, ref, mac):
-        return xen_api_success(self._get_PIF(ref).set_mac(name))
+        return xen_api_success(self._get_PIF(ref).set_mac(mac))
 
     def PIF_set_MTU(self, _, ref, mtu):
-        return xen_api_success(self._get_PIF(ref).set_mtu(name))
+        return xen_api_success(self._get_PIF(ref).set_mtu(mtu))
 
     def PIF_create_VLAN(self, _, ref, network, vlan):
         try: