Open-Network-Models-and-Interfaces-ONMI / TAPI

LF ONMI Transport API Repository (TAPI)
https://github.com/Open-Network-Models-and-Interfaces-ONMI/TAPI/wiki
Apache License 2.0
95 stars 80 forks source link

erroneous container in tapi-photonic-media yang model #386

Closed Andrea-Campanella closed 6 months ago

Andrea-Campanella commented 5 years ago

I generated the following tree (see figure down the mail) from yang git. Branch develop, yang files 2018-12-10.

To create a connectivity service:

I) For OTSi, I can see that for each end-point,

II) Now, for Media Channel, trying to mimic OTSI...

I am guessing there may be an issue. Taking a look at Yang, IMHO, this is not "right"

diff --git a/YANG/tapi-photonic-media@2018-12-10.yang b/YANG/tapi-photonic-media@2018-12-10.yang index dc69c76..1936dd3 100755 --- a/YANG/tapi-photonic-media@2018-12-10.yang +++ b/YANG/tapi-photonic-media@2018-12-10.yang @@ -109,8 +109,8 @@ module tapi-photonic-media { description "none"; } augment "/tapi-common:context/tapi-connectivity:connectivity-context/tapi-connectivity:connectivity-service/tapi-connectivity:end-point" {

With this change, the tree seems correct and I can have

  "end-point" : [
     {
        "local-id" : "00000000-0000-0000-0001-000000000001",
        "layer-protocol-name" : "PHOTONIC_MEDIA",
        "layer-protocol-qualifier" : "tapi-photonic-media:PHOTONIC_LAYER_QUALIFIER_NMC",
        "service-interface-point" : {
           "service-interface-point-uuid" : "00000000-0000-0000-0001-000000000001"
        },
        "tapi-photonic-media:media-channel-connectivity-endpoint-spec" : {
            "tapi-photonic-media:mc-config" : {
                "tapi-photonic-media:spectrum" : {
                    "upper-frequency" : 1,
                    "lower-frequency" : 2,
                    "frequency-constraint" : {
                        "adjustment-granularity" : "G_6_25GHZ",
                        "grid-type": "FLEX"
                    }
                }
            }
        }

     },

Thanks for the contribution to Ramon Casellas

karthik-sethuraman commented 5 years ago

Fixed as part of #393 and #408

arthurMll commented 5 years ago

This bug was not fixed in TAPI v2.1, could it be push a change to v2.1-bug-fixes version?

amazzini commented 6 months ago

This issue has been closed due to the lack of activity for more than one year. Please reopen it if follow up is necessary.