Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include mandatory statement for leafs #47

Open
PrathibaJee opened this issue Apr 26, 2023 · 0 comments
Open

Include mandatory statement for leafs #47

PrathibaJee opened this issue Apr 26, 2023 · 0 comments
Assignees

Comments

@PrathibaJee
Copy link
Collaborator

As per TR-532 mapping guideline , for leafs , if mandatory statement is 1 , then mandatory sub statement shall be true.
image

As per RFC 6020 section 7.6.1 ,
image

Since we have default values included for all the attributes in the already provided technology specific modules, we are planning to use the following condition for including mandatory substatement,
(if multiplicity = 1 in UML) AND (no default value defined) => (then mandatory statement to be put into YANG)

To support this change, the following needs to be modified,

  • models\tools\xmi-to-yang\src\main\resources\parser\processors.js to support Obj2Yang
  • models\tools\xmi-to-yang\src\main\resources\generator\yangprocessors.js to buildChild
  • models\tools\xmi-to-yang\src\main\resources\model\OwnedAttribute.js to store lowerValue parameter in the store
  • models\tools\xmi-to-yang\src\main\resources\model\yang\leaf.js to support writeNode(to print the mandatory statement in the Yang)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant