1 from kamaki.clients.compute import ComputeClient
2 from kamaki.clients.cyclades import CycladesClient
3 from kamaki.cli.config import Config
5 from occi import registry
6 from occi.core_model import Mixin
7 from occi.backend import MixinBackend
8 from occi.extensions.infrastructure import RESOURCE_TEMPLATE, OS_TEMPLATE
10 class snfRegistry(registry.NonePersistentRegistry):
12 def add_resource(self, key, resource, extras):
14 key = resource.kind.location + resource.attributes['occi.core.id']
15 resource.identifier = key
17 super(snfRegistry, self).add_resource(key, resource, extras)