from cinder.api import extensions
import cinder.api.openstack
from cinder.api.v2 import limits
+from cinder.api.v2 import snapshot_metadata
from cinder.api.v2 import snapshots
from cinder.api.v2 import types
from cinder.api.v2 import volumes
self.resources['limits'] = limits.create_resource()
mapper.resource("limit", "limits",
controller=self.resources['limits'])
+
+ self.resources['snapshot_metadata'] = \
+ snapshot_metadata.create_resource()
+ snapshot_metadata_controller = self.resources['snapshot_metadata']
+
+ mapper.resource("snapshot_metadata", "metadata",
+ controller=snapshot_metadata_controller,
+ parent_resource=dict(member_name='snapshot',
+ collection_name='snapshots'))