X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-inmemory-datastore%2Fsrc%2Ftest%2Fresources%2Fodl-datastore-test.yang;h=ffc8fe07c88b9adfeaa078e586b996616b7b633b;hp=2d7601e0b85a29434385ef36db290d230712abb9;hb=7292faba613ab556babd7bbcdd78984f5668bf9b;hpb=7ab6f974861e01daa16ff56658eeb1be163cbfec;ds=sidebyside diff --git a/opendaylight/md-sal/sal-inmemory-datastore/src/test/resources/odl-datastore-test.yang b/opendaylight/md-sal/sal-inmemory-datastore/src/test/resources/odl-datastore-test.yang index 2d7601e0b8..ffc8fe07c8 100644 --- a/opendaylight/md-sal/sal-inmemory-datastore/src/test/resources/odl-datastore-test.yang +++ b/opendaylight/md-sal/sal-inmemory-datastore/src/test/resources/odl-datastore-test.yang @@ -41,4 +41,16 @@ module odl-datastore-test { } } } + + container mandatory-data-test { + presence "needs to be present when empty"; + + leaf optional-data { + type string; + } + leaf mandatory-data { + type string; + mandatory true; + } + } }