code: def attach_volume_to_device(self, volume_id, device_id):
          
          try:
              volume = self.manager.get_volume(volume_id)
              volume.attach(device_id)
          except packet.baseapi.Error as msg:
              raise PacketManagerException(msg)
          return volume
docs: Attaches the created Volume to a Device.