Technical questions #33
Replies: 6 comments
-
Michal,
Here are my response to your questions:
1. We should have governance for both JSON schemas and YANG models. To date the JSON schemas that I have worked on have been created by hand using the Papyrus UML as a guide. The Papyrus UML is based on the specific MEF Specification (i.e., MEF 82 SD-WAN Information Model is based on MEF 70). Karthik and I have discussed developing a tool which would generated JSON schema from markdown version of MEF Specification. Specifically, the tables in the MEF Specification would be generated into JSON schemas.
2. The ONAP tool we have used is the EAGLE tool which generates YANG from Papyrus UML. There are some issues that do require additional work to modify the YANG. I don’t know the latest version of EAGLE tool (and corresponding pyang plugin).
3. To date we are only doing YANG and RESTCONF YANG APIs at Presto. The remainder APIs are REST/JSON.
Thanks,
Jack
From: Michał Łączyński <notifications@github.com>
Reply-To: MEF-GIT/mef-lso-legato-sdk-community <reply@reply.github.com>
Date: Monday, May 25, 2020 at 2:27 AM
To: MEF-GIT/mef-lso-legato-sdk-community <MEF.LSO.Legato.SDK.Community@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [MEF-GIT/mef-lso-legato-sdk-community] Technical questions (#5)
Hello All!,
I have received a few questions from one on MEF members. I couldn't provide a quick response on my own. Maybe you can help. Thanks!
1. I see there is a JSONSchema for payload governance.
Why this and not a YANG definition?
How was the JSONSchema created? Generated from the YANG or hand-crafted to match?
2. I since found that there is a pyang plugin that was written that generates the jsonschema block in the swagger file.
That’s moved to be owned by ONAP – correct?
What’s the current “official” version of that pyang plugin?
3. Why use jsonschema instead of using YANG directly?
Or are clients using both the js for client generation and then using YANG validation on the payload?
I’d be interested in what the community is doing with this.
I'd appreciate your help,
Thanks,
Michał
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2forgs%2fMEF%2dGIT%2fteams%2fmef%2dlso%2dlegato%2dsdk%2dcommunity%2fdiscussions%2f5&umid=E21A1114-A673-E905-A93C-6690580A274B&auth=19120be9529b25014b618505cb01789c5433dae7-a695acce2688ce3ec692c9c2506933a0d003e550>, or unsubscribe<https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fACR4QO76Y7EGUOKHFZ3Z553RTIMSDANCNFSM4NJJIXQQ&umid=E21A1114-A673-E905-A93C-6690580A274B&auth=19120be9529b25014b618505cb01789c5433dae7-276615b739fd2487d012e12ff856e3ee0c60a652>.
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
|
Beta Was this translation helpful? Give feedback.
-
Thanks Jack!, And one more response I got via email: Best Regards, |
Beta Was this translation helpful? Give feedback.
-
thanks for the replies. I agree the Swagger/OpenAPI "weight" must be considered and so JSONSchema compatibility is very important. YANG to JSONSchema is mostly doable but there are some things which can't be translated (having built a high-quality translator). A good goal would be to ensure that the JSON conformant to the JSONSchema can be clearly translated into XML for typical YANG back-end validation (Relax-NG, Schematron/XSL as pyang generates). That would essentially enable stronger YANG validation as an option - "bilingual" schema validation. |
Beta Was this translation helpful? Give feedback.
-
Hi Mike, Thanks for the help proposal. Regards, |
Beta Was this translation helpful? Give feedback.
-
I have follow-up questions.
|
Beta Was this translation helpful? Give feedback.
-
What I have managed to get to know: We have used MSM MEF W7.4 and corresponding JSON schemas for Carrier Ethernet and Carrier Ethernet SLS for Legato and it was also used to help with Sonata Access E-Line schemas. I am not sure which evc_ovc.json schema is being referred to. The original EVC YANG I believe is not up to date based on MEF 10.4 and MEF 26.2. The schemas mentions above are the latest. A decision in the past was made to shift Legato APIs/SDK to TMF/ONAP based and hence we do not plan on promoting Yang@Legato anymore. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All!,
I have received a few questions from one on MEF members. I couldn't provide a quick response on my own. Maybe you can help. Thanks!
I see there is a JSONSchema for payload governance.
Why this and not a YANG definition?
How was the JSONSchema created? Generated from the YANG or hand-crafted to match?
I since found that there is a pyang plugin that was written that generates the jsonschema block in the swagger file.
That’s moved to be owned by ONAP – correct?
What’s the current “official” version of that pyang plugin?
Why use jsonschema instead of using YANG directly?
Or are clients using both the js for client generation and then using YANG validation on the payload?
I’d be interested in what the community is doing with this.
I'd appreciate your help,
Thanks,
Michał
Beta Was this translation helpful? Give feedback.
All reactions