-
Notifications
You must be signed in to change notification settings - Fork 18
Package on boarding feature
A package is an aggregator of a (network) service descriptor, at least one (virtual network) function and all its dependencies (see son-schema
).
A package is stored with the username
that has on-boarded the package, making it the package owner.
This ownership is used to control who can download and reuse it (see Types of package licences, below).
The service and the functions of the package also get the same owner, unless they are found to already belong to the Catalogue where the package is being on-boarded: in this case, the on-boarded package will have its owner stored, but the service and functions will keep their original owners.
add licence verification
First, make sure you're a registered user and you are logged in.
$ curl -vi -X POST -F "package=@../son-schema/package-descriptor/examples/sonata-demo.son" -H "Authorization:Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ4TnoxQ2ozZXQ5cG8xTzh2aTNpSjc2eThtSF9iM1VFMmY4YWR2UGpRNDZrIn0.eyJqdGkiOiIzYzY2ODk1Ni1mZmExLTRlZTQtYmRhMi0wM2ZlMWMzMzMxOTIiLCJleHAiOjE0OTU0NTc1OTMsIm5iZiI6MCwiaWF0IjoxNDk1NDU3MjkzLCJpc3MiOiJodHRwOi8vc29uLWtleWNsb2FrOjU2MDEvYXV0aC9yZWFsbXMvc29uYXRhIiwiYXVkIjoiYWRhcHRlciIsInN1YiI6ImZlNTNhYzRmLTA1MmEtNGE0MS1iN2NkLTkxNGQ0YzY0YzJmOCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFkYXB0ZXIiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiI5NzM1ZTcxMi01YjhkLTQ5ZTYtYTEyMC0wNzFjNDg1MTk3YWIiLCJhY3IiOiIxIiwiY2xpZW50X3Nlc3Npb24iOiI3MDk4OGZkMS0zYTRjLTQ3ZjktOTE5MC01MDdkNmVlMjkyYTkiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo4MDgxIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZXZlbG9wZXIiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sIm5hbWUiOiIiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJqYm9ubmV0IiwiZW1haWwiOiJqYm9ubmV0QGFsdGljZWxhYnMuY29tIn0.g2xSFFTNjZWFTwy1ZI29BgJ0MN3PA1d5ULedekzCvNiQCdim21uSesnVoUeDevcHu-BiWB0aIQjVyIdzYHqN3QzlWRa1OGCDOvi7QvbY1CGIAkKEyotmdj280nQixp0tHS3Of4AxMWFIc7VaBiySbOQmMAflQ7U4cLwL2P7BDMv24o5OfWdAERhzE-xRrw74wH5C1AjKZ4CkI8DR9cwsw69vLX9Gf3rGhwuT_Tk_6mmogJswgWjvbRnT41nhUItkZtaYrNQ6jBP7mXqtmOnB1lrJuIu0JG-87GNa0VkaZ5VcC_i1xiBxitj5S2pH-UmztGVkro8r-PHUIWE_PHDeFg" <IP address>:<port>/api/v2/packages
{
"created_at": "2017-05-25T12:35:54.614+00:00",
"md5": "49ce3e2f15aec5c012ef35575255ebfb",
"pd": {
"description": "SONATA RING service for qualification environment",
"descriptor_version": "1.0",
"entry_service_template": "/service_descriptors/sonata-qual-1vnf-1pop.yml",
"maintainer": "Felipe Vicens, ATOS, [email protected]",
"name": "sonata-ring-service",
"package_content": [
{
"content-type": "application/sonata.service_descriptor",
"md5": "3480169189d000dc70dfe5b022629c21",
"name": "/service_descriptors/sonata-qual-1vnf-1pop.yml"
},
{
"content-type": "application/sonata.function_descriptor",
"md5": "7dac616660f603911ac6268aa3846095",
"name": "/function_descriptors/vring-vnf-vnfd.yml"
}
],
"schema": "https://raw.githubusercontent.com/sonata-nfv/son-schema/master/package-descriptor/pd-schema.yml",
"sealed": true,
"vendor": "eu.sonata-nfv.package",
"version": "0.1"
},
"signature": null,
"son-package-uuid": "3e38882a-c659-4039-a159-320f7dea7dc0",
"status": "active",
"updated_at": "2017-05-25T12:35:54.614+00:00",
"username": null,
"uuid": "c0343293-0f1e-46be-bc40-886eddb73a38"
}