Last active
August 29, 2015 14:09
-
-
Save dizz/f8d32fbdf6531d2ede52 to your computer and use it in GitHub Desktop.
service reg and descriptor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dns_service_endpoint = 'http://dns.cloudcomplab.ch:8888/dns/' | |
| maas_service_endpoint = 'http://maas.cloudcomplab.ch:8888/maas/' | |
| rcb_service_endpoint = 'http://rcb.cloudcomplab.ch:8888/rcb/' | |
| ran_service_endpoint = 'http://ran.cloudcomplab.ch:8888/ran/' | |
| epc_service_endpoint = 'http://epc.cloudcomplab.ch:8888/epc/' | |
| ims_service_endpoint = 'http://ims.cloudcomplab.ch:8888/ims/' | |
| cc_service_endpoint = 'http://cc.cloudcomplab.ch:8888/' | |
| # aka mcn sdk, aka keystone | |
| service_reg = { | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#rcb': { | |
| 'service_endpoint': rcb_service_endpoint, | |
| 'service_description': "RCBaaS" | |
| }, | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#maas': { | |
| 'service_endpoint': dns_service_endpoint, | |
| 'service_description': "DNSaaS" | |
| }, | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#dns': { | |
| 'service_endpoint': maas_service_endpoint, | |
| 'service_description': "MaaS" | |
| }, | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#ran': { | |
| 'service_endpoint': ran_service_endpoint, | |
| 'service_description': "RANaaS" | |
| }, | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#epc': { | |
| 'service_endpoint': epc_service_endpoint, | |
| 'service_description': "EPCaaS" | |
| }, | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#ims': { | |
| 'service_endpoint': ims_service_endpoint, | |
| 'service_description': "IMSaaS" | |
| }, | |
| 'http://schemas.mobile-cloud-networking.eu/occi/service#cc': { | |
| 'service_endpoint': cc_service_endpoint, | |
| 'service_description': "CloudController" | |
| } | |
| } | |
| # will construct a service and also specify what services are required for its service instantiations | |
| service = { | |
| # schema and kind | |
| 'service_type': 'http://schemas.mobile-cloud-networking.eu/occi/sm#e2e', | |
| 'service_description': 'End to end service', | |
| 'service_attributes': { | |
| 'occi.attr.test': 'required', | |
| 'occi.attr.other': 'mutable', | |
| }, | |
| 'service_endpoint': 'http://ran.cloudcomplab.ch:8888/e2e/', | |
| # >= 0, if string provision in serial, if array provision all in the array in parallel | |
| 'depends_on': [ | |
| "http://schemas.openshift.com/template/app#mysql", # this is an openshift dependency as def. by occi platform spec | |
| ['http://schemas.mobile-cloud-networking.eu/occi/sm#maas', | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#dns'], | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#ran', | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#epc', | |
| 'http://schemas.mobile-cloud-networking.eu/occi/sm#ims', | |
| 'http://schemas.mobile-cloud-networking.eu/occi/service#cc', # we have this in the resource section already - needed? | |
| ], | |
| # >= 0, likely should be the last created | |
| 'resources': [ | |
| { | |
| 'http://schemas.mobile-cloud-networking.eu/occi/service#cc': { | |
| # resource descriptor | |
| 'uri': 'file:///root/my/bundle/data/itg.yaml' # this could also be defined inline | |
| } | |
| } | |
| ] | |
| # if len(depends_on) and len(resources) == 0: LOG.warn('nothing to do') | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment