 	*
 	* @param {string} vm
 	* @param {number} nic
-	* @param {string} network
+	* @param {string} netname
 	* @param {function(?err)} callback
 ###
-exports.set_hostonly = (vm, nic, network, callback) ->
-	command.exec 'modifyvm', vm, "--nic#{nic}", 'hostonly', "--hostonlyadapter#{nic}", network, (err, code, output) ->
+exports.set_hostonly = (vm, nic, netname, callback) ->
+	command.exec 'modifyvm', vm, "--nic#{nic}", 'hostonly', "--hostonlyadapter#{nic}", netname, (err, code, output) ->
 		return callback err if err
 		return callback new Error "cannot set hostonly network for nic #{nic} on #{vm}" if code > 0
 		return do callback if callback

exports.set_nat = (vm, nic, callback) ->
	command.exec 'modifyvm', vm, "--nic#{nic}", 'nat', (err, code, output) ->
		return callback err if err
		return callback new Error "cannot set nat network for nic #{nic} on #{vm}" if code > 0
		return do callback if callback
		
	*
	* @param {string} vm
	* @param {number} nic
	* @param {string} netname
	* @param {function(?err)} callback
###
exports.set_internal = (vm, nic, netname, callback) ->
	command.exec 'modifyvm', vm, "--nic#{nic}", 'intnet', "--intnet#{nic}", netname, (err, code, output) ->
		return callback err if err
		return callback new Error "cannot set internal network for nic #{nic} on #{vm}" if code > 0
		return do callback if callback
