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

YDK MetaInfo should have a field for mandatory leaf #918

Closed
ghost opened this issue May 2, 2019 · 1 comment
Closed

YDK MetaInfo should have a field for mandatory leaf #918

ghost opened this issue May 2, 2019 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented May 2, 2019

Resolved to YDK-0.5.5.m1 branch.

@ygorelik ygorelik assigned ghost and ygorelik May 2, 2019
@ygorelik
Copy link
Collaborator

ygorelik commented May 2, 2019

Resolved to YDK-0.8.3 branch.

Tested with this sanity test:

from ydk.models.ydktest.ydktest_sanity import Runner

    def test_mandatory_leaf(self):
        mand = Runner.Mtus.Mtu()
        mand.owner = 'test'
        mand.mtu = 1500
        mand_meta = mand._meta_info()
        self.assertTrue(mand_meta.member('mtu').is_mandatory)

@ygorelik ygorelik closed this as completed May 2, 2019
ygorelik pushed a commit to ygorelik/ydk-gen that referenced this issue May 2, 2019
ghost pushed a commit that referenced this issue May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant