Lines Matching refs:vmDevice
23 var vmDevice = {};
27 vmDevice.id = 0;
28 vmDevice.deviceName = 'Virtual media device';
29 findExistingConnection(vmDevice);
30 $scope.devices.push(vmDevice);
55 function findExistingConnection(vmDevice) { argument
59 if (existingConnectionsMap.hasOwnProperty(vmDevice.id)) {
61 if (existingConnectionsMap[vmDevice.id].server.ws.readyState === 1) {
62 vmDevice.isActive = true;
63 vmDevice.file = existingConnectionsMap[vmDevice.id].file;
64 vmDevice.nbdServer = existingConnectionsMap[vmDevice.id].server;
67 return vmDevice;