 
 #---------------------------------------------------------------------
 
+# TODO: implement resource sets
 copy = $coroutine ({
   compress,
   name: nameLabel,


#---------------------------------------------------------------------

clone = $coroutine ({vm, name, full_copy}) ->
  yield checkPermissionOnSrs.call(this, vm)



# FIXME: position should be optional and default to last.

# TODO: implement resource sets
createInterface = $coroutine ({vm, network, position, mtu, mac}) ->
  vif = yield @getXapi(vm).createVif(vm._xapiId, network._xapiId, {
    mac,
