OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

tosca message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [tosca] Datatype definition with an empty base type?


Hi Thinh,

 

No one doubted that it is possible to define an empty base data type and derive other data types from it.

 

The point is that in the interface type definition in SOL001 we will have properties of this empty data type. But any interface defined in any SOL001 compliant VNFD service template will have those properties not from the base empty type but from the derived type.  Is there a way to express that in the schema? Otherwise how can we preclude that in a VNFD service template, any property is replaced by a property of a derived, richer type?

 

BR,

Arturo

 

From: tosca@lists.oasis-open.org <tosca@lists.oasis-open.org> On Behalf Of Chris Lauwers
Sent: Tuesday, June 26, 2018 5:47 PM
To: Nguyenphu, Thinh (Nokia - US/Irving) <thinh.nguyenphu@nokia.com>
Cc: tosca@lists.oasis-open.org
Subject: Re: [tosca] Datatype definition with an empty base type?

 

Yes, I don’t see any issues with this. 

 

Chris

Sent from my iPhone


On Jun 26, 2018, at 4:40 PM, Nguyenphu, Thinh (Nokia - US/Irving) <thinh.nguyenphu@nokia.com> wrote:

Hello Chris and Claude,

 

Would it be possible to have a datatype with an empty based type for deriving data type for describing vendor specific parameters.  Would it possible to discuss this issue during today YAML call. Sorry for late notice.

 

Data type definition:

 

tosca.datatypes.nfv.VnfOperationAdditionalParameters:

  derived_from: tosca.datatypes.Root

 

 

Example:

 

...

node_types:

  mycompany.nodes.nfv.SunshineDB.1_0.1_0:

    derived_from: tosca.nodes.nfv.VNF

    properties:

      ...

    interfaces:

      Vnflcm:

        type: mycompany.interfaces.nfv.Vnflcm

 

data_types:

  ...

  mycompany.datatypes.nfv.InstantiateAdditionalParameters:

    derived_from: tosca.datatypes.nfv.VnfOperationAdditionalParameters

    properties:

      parameter_1:

        type: string

        required: true

      parameter_2:

        type: string

        required: false

        default: value_2

 

interface_types:

  mycompany.interfaces.nfv.Vnflcm:

    derived_from: tosca.interfaces.nfv.Vnflcm

    instantiate:

      inputs:

        additional_parameters:

          type: mycompany.datatypes.nfv.InstantiateAdditionalParameters

          required: true

    terminate:

    heal:

 

topology_template:

  ..

 

 

 

 

Thinh Nguyenphu

Nokia Networks

thinh.nguyenphu@nokia.com

+1 817-313-5189

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]