X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-protocolbuffer-encoding%2Fsrc%2Ftest%2Fresources%2Fodl-datastore-test.yang;h=e4eca7b71738df8e06ec7bde21f0344160c68b40;hb=516a4b2ea78179c9bd6ebb584862e8fc686ebf08;hp=32ec2777ce2fd6c55c47cb6d3602b6e3c1e380e0;hpb=55e562009629fcc7163f1f05261de4b2ce4b1e77;p=controller.git diff --git a/opendaylight/md-sal/sal-protocolbuffer-encoding/src/test/resources/odl-datastore-test.yang b/opendaylight/md-sal/sal-protocolbuffer-encoding/src/test/resources/odl-datastore-test.yang index 32ec2777ce..e4eca7b717 100644 --- a/opendaylight/md-sal/sal-protocolbuffer-encoding/src/test/resources/odl-datastore-test.yang +++ b/opendaylight/md-sal/sal-protocolbuffer-encoding/src/test/resources/odl-datastore-test.yang @@ -1,33 +1,91 @@ module odl-datastore-test { yang-version 1; - namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:notification-test"; - prefix "notification-test-using-family-model"; + namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test"; + prefix "store-test"; - revision "2014-04-15" { - description "Family structure created on "; + revision "2014-03-13" { + description "Initial revision."; } - container family { + identity feature-capability { + } + + container test { leaf desc { type string; } - list children { - key child-number; - leaf child-number { + list outer-list { + key id; + leaf id { type uint16; } - leaf child-name { - type string; - } - list grand-children { - key grand-child-number; - leaf grand-child-number { - type uint16; + choice outer-choice { + case one { + leaf one { + type string; + } + } + case two-three { + leaf two { + type string; + } + leaf three { + type string; + } + } + } + list inner-list { + key name; + leaf name { + type string; } - leaf grand-child-name { + leaf value { type string; } } } + + leaf-list shoe { + type string; + } + + leaf-list number { + type uint8; + } + + leaf pointer { + type leafref { + path "/network-topology/topology/node/termination-point/tp-id"; + } + } + + leaf some-ref { + type instance-identifier; + } + + leaf myidentity { + type identityref { + base feature-capability; + } + } + + container switch-features { + leaf-list capability { + type identityref { + base feature-capability; + } + + } + } + + list augmented-list { + key id; + + leaf id { + type uint8; + } + } + + } -} \ No newline at end of file +}