Bug 187 - modifiableAttributes in Vnfd is unusable as is.
Summary: modifiableAttributes in Vnfd is unusable as is.
Status: CONFIRMED
Alias: None
Product: NFV
Classification: Unclassified
Component: GS NFV-SOL 006 Yang model (show other bugs)
Version: unspecified
Hardware: PC Windows
Assignee: Bruno Chatras
 
Reported: 2019-03-07 01:11 CET by Mahesh Jethanandani
Modified: 2019-03-29 23:32 CET (History)
1 user (show)

See Also:
Version number of the related document:
OpenAPI issue category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mahesh Jethanandani 2019-03-07 01:11:37 CET
modifiableAttributes in Vnfd is defined as 0..1 container, container two attributes 'extension' and 'metadata' each with a cardinality of 0..N. It is not clear how these attributes are expected to be used. What that means is data stored would look like

{
  "extensions": {
      "cba",
      "abc",
      "foo",
      "bar",
      "xxx",
      "yyy"
  }
}
{
  "metadata": {
      "aaa",
      "bbb",
      "ccc",
      "ddd"
  }
}

Even if one were to know what "cba" extension means, there is no metadata associated with it. And one cannot assume that "aaa" is metadata for "cba" extension (at least in YANG, which can reorder data within extension and metadata).

A much more sensible structure would be to have extension/metadata as key/value pair.
Comment 1 Mahesh Jethanandani 2019-03-29 23:32:09 CET
The WG (in particular the chair) demonstrated that while IFA models the two attributes 'extension' and 'metadata' as "Not Specified", there is nothing to say that an implementation could not define them as key value pair. YANG cannot have a attribute that is of type 'empty'.

The question therefore the WG (which I forgot to ask) is that can SOL006 define them as KVP. Keeping the bug open to record that response and any action that might come out of it.