Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jbonnet/5fea8faddba2bb54dcb42518622d2556 to your computer and use it in GitHub Desktop.
Save jbonnet/5fea8faddba2bb54dcb42518622d2556 to your computer and use it in GitHub Desktop.
5GTANGO example of a package processing status query
{
"event_name": "onPackageChangeEvent",
"package_id": "d367ed3b-e401-48be-af96-fc03487b12b5",
"package_location": "http://tng-cat:4011/catalogues/api/v2/packages/d367ed3b-e401-48be-af96-fc03487b12b5",
"package_metadata": {
"description": "This is an example 5GTANGO network service package.",
"descriptor_schema": "https://raw.githubusercontent.com/sonata-nfv/tng-schema/master/package-specification/napd-schema.yml",
"error": null,
"logo": "Icons/upb_logo.png",
"maintainer": "Manuel Peuster, Paderborn University",
"metadata": {
"_napd_path": "/tmp/tmptouikyym/5gtango-ns-package-example/TOSCA-Metadata/NAPD.yaml",
"_storage_generic_files": {
"LICENSE": "a1fd38b5-e61b-483e-9b6b-2edaa2166066",
"cloud.init": "8339a0a3-cb78-4583-af92-2d625802da89",
"upb_logo.png": "d017a079-16c3-4def-96db-b48ccf67ac15"
},
"_storage_location": "http://tng-cat:4011/catalogues/api/v2/packages/d367ed3b-e401-48be-af96-fc03487b12b5",
"_storage_pkg_file": "b3ece755-a799-4414-b33f-e39141faa63b",
"_storage_uuid": "d367ed3b-e401-48be-af96-fc03487b12b5",
"etsi": [
{
"ns_package_version": "0.1",
"ns_product_name": "ns-package-example",
"ns_provider_id": "eu.5gtango",
"ns_release_date_time": "2009-01-01T10:01:02Z"
},
{
"Algorithm": "SHA-256",
"Hash": "a3734cb3eeaa18dee2daf7f2538c4c3be185bead6fc5a28729f44bf78f2b8af8",
"Source": "Definitions/mynsd.yaml"
},
{
"Algorithm": "SHA-256",
"Hash": "44fc832e0be9c78d8a59d8b57abd8d8f47e6b2e5e7ed264f111e51d3413f911b",
"Source": "Definitions/myvnfd.yaml"
},
{
"Algorithm": "SHA-256",
"Hash": "dd83757e632740f9f390af15eeb8bc25480a0c412c7ea9ac9abbb0e5e025e508",
"Source": "Icons/upb_logo.png"
},
{
"Algorithm": "SHA-256",
"Hash": "e26ff11f2cd2efc1eed3a47a94fccbf6fc8d0c844ff15b65aeb02576c1d02640",
"Source": "Images/mycloudimage.ref"
},
{
"Algorithm": "SHA-256",
"Hash": "179f180ea1630016d585ff32321037b18972d389be0518c0192021286c4898ca",
"Source": "Licenses/LICENSE"
},
{
"Algorithm": "SHA-256",
"Hash": "e16360cc3518bde752ac2d506e6bdb6bcb6638a0f94df9ea06975ae910204277",
"Source": "Scripts/cloud.init"
}
],
"tosca": [
{
"CSAR-Version": "1.0",
"Created-By": "Manuel Peuster (Paderborn University)",
"Entry-Change-Log": "ChangeLog.txt",
"Entry-Definitions": "Definitions/mynsd.yaml",
"Entry-Licenses": "Licenses",
"Entry-Manifest": "mynsd.mf",
"TOSCA-Meta-Version": "1.0"
},
{
"Content-Type": "application/vnd.5gtango.napd",
"Name": "TOSCA-Metadata/NAPD.yaml"
}
]
},
"name": "ns-package-example",
"package_content": [
{
"algorithm": "SHA-256",
"content-type": "application/vnd.5gtango.nsd",
"hash": "a3734cb3eeaa18dee2daf7f2538c4c3be185bead6fc5a28729f44bf78f2b8af8",
"source": "Definitions/mynsd.yaml",
"tags": [
"eu.5gtango"
]
},
{
"algorithm": "SHA-256",
"content-type": "application/vnd.5gtango.vnfd",
"hash": "44fc832e0be9c78d8a59d8b57abd8d8f47e6b2e5e7ed264f111e51d3413f911b",
"source": "Definitions/myvnfd.yaml",
"tags": [
"eu.5gtango"
]
},
{
"algorithm": "SHA-256",
"content-type": "image/png",
"hash": "dd83757e632740f9f390af15eeb8bc25480a0c412c7ea9ac9abbb0e5e025e508",
"source": "Icons/upb_logo.png"
},
{
"algorithm": "SHA-256",
"content-type": "application/vnd.5gtango.ref",
"hash": "e26ff11f2cd2efc1eed3a47a94fccbf6fc8d0c844ff15b65aeb02576c1d02640",
"source": "Images/mycloudimage.ref"
},
{
"algorithm": "SHA-256",
"content-type": "text/plain",
"hash": "179f180ea1630016d585ff32321037b18972d389be0518c0192021286c4898ca",
"source": "Licenses/LICENSE"
},
{
"algorithm": "SHA-256",
"content-type": "text/x-shellscript",
"hash": "e16360cc3518bde752ac2d506e6bdb6bcb6638a0f94df9ea06975ae910204277",
"source": "Scripts/cloud.init"
}
],
"package_type": "application/vnd.5gtango.package.nsp",
"release_date_time": "2009-01-01T10:01:02Z",
"vendor": "eu.5gtango",
"version": "0.1"
},
"package_process_status": "success",
"package_process_uuid": "b295e010-1fbc-4ff7-922a-a1703295f63f"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment