 
 # 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,

  {_xapiRef: ref} = VM

  # Memory.
  if 'memory' of params
    memory = parseSize(params.memory)



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

# TODO: implement resource sets
snapshot = $coroutine ({vm, name}) ->
  yield checkPermissionOnSrs.call(this, vm)

