xapi-project / xapi-storage

Experimental new storage interface for xapi
https://xapi-project.github.io/xapi-storage/
9 stars 19 forks source link

Make `type sr` abstract? #35

Open djs55 opened 9 years ago

djs55 commented 9 years ago

In the IDL the type sr (for an attached SR) should probably be marked as abstract. We should return it from SR.attach, store it away somewhere and resupply it later.

For the python boilerplate this probably corresponds to using pickle to store away the result in the boilerplate. The xapi-storage-service could persist a mapping of SR.uri to type sr on disk.