X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fmdsal-netconf-connector%2Fsrc%2Ftest%2Fresources%2Fyang%2Fmdsal-netconf-mapping-test.yang;h=dadeb694de9c064b8f2211072b122c07358a3311;hb=608760751ce7fcf4e84e86a8b33d43bc1d9984d6;hp=69a82eea84b927b9fbd63f11c3a09b6dfd574099;hpb=7f44a5812395762479de68d339c3d017db6c0e9d;p=controller.git diff --git a/opendaylight/netconf/mdsal-netconf-connector/src/test/resources/yang/mdsal-netconf-mapping-test.yang b/opendaylight/netconf/mdsal-netconf-connector/src/test/resources/yang/mdsal-netconf-mapping-test.yang index 69a82eea84..dadeb694de 100644 --- a/opendaylight/netconf/mdsal-netconf-connector/src/test/resources/yang/mdsal-netconf-mapping-test.yang +++ b/opendaylight/netconf/mdsal-netconf-connector/src/test/resources/yang/mdsal-netconf-mapping-test.yang @@ -18,4 +18,105 @@ module config { } } } + + container top { + + container users { + + list user { + + leaf name { + type string; + } + + leaf type { + type string; + } + + leaf full-name { + type string; + } + + container company-info { + + leaf dept { + type string; + } + + leaf id { + type string; + } + } + } + } + + container modules { + + list module { + + leaf id { + type string; + } + + leaf type { + type string; + } + + leaf desc { + type string; + } + } + } + + choice choice-node { + case a { + leaf text { + type string; + } + } + + case b { + container text-cont { + leaf text { + type string; + } + } + } + } + + } //top + + augment "/map:top/map:choice-node" { + case c { + leaf augmented-case { + type string; + } + } + + case d { + container choice-wrapper { + choice inner-choice { + case ia { + leaf text { + type string; + } + } + + case ib { + leaf text2 { + type string; + } + } + } + } + } + } + + augment "/map:top/map:modules/" { + container augmented-container{ + leaf identifier { + type string; + } + } + } } \ No newline at end of file