X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fsal%2Fmodel%2Fmodel-inventory%2Fsrc%2Fmain%2Fyang%2Finventory.yang;fp=opendaylight%2Fsal%2Fyang-prototype%2Fsal%2Fmodel%2Fmodel-inventory%2Fsrc%2Fmain%2Fyang%2Finventory.yang;h=a114c624f33cc7234c1a9a130513ec1cd1ba6624;hb=a42feab86ce480cf505f9cb43f1aed0420631ee0;hp=0000000000000000000000000000000000000000;hpb=d07c39a5f9e77c8e6f4293ee23eae53b7d6b525c;p=controller.git diff --git a/opendaylight/sal/yang-prototype/sal/model/model-inventory/src/main/yang/inventory.yang b/opendaylight/sal/yang-prototype/sal/model/model-inventory/src/main/yang/inventory.yang new file mode 100644 index 0000000000..a114c624f3 --- /dev/null +++ b/opendaylight/sal/yang-prototype/sal/model/model-inventory/src/main/yang/inventory.yang @@ -0,0 +1,69 @@ +module opendaylight-inventory { + namespace "urn:opendaylight:inventory"; + prefix inv; + + import yang-ext {prefix ext;} + import ietf-inet-types {prefix inet;} + import ietf-yang-types {prefix yang;} + + + revision "2013-08-19" { + description "Initial revision of Inventory model"; + } + + typedef node-id { + type inet:uri; + } + + typedef node-connector-id { + type inet:uri; + } + + typedef node-ref { + type instance-identifier; + } + + typedef node-connector-ref { + type instance-identifier; + } + + identity node-context { + description "Identity used to mark node context"; + } + + identity node-connector-context { + + } + + grouping node { + leaf id { + type node-id; + } + } + + grouping node-connector { + leaf id { + type node-connector-id; + } + } + + + + + /** Base structure **/ + container nodes { + list node { + key "id"; + ext:context-instance "node-context"; + + uses node; + + list "node-connector" { + key "id"; + ext:context-instance "node-connector-context"; + + use node-connector; + } + } + } +} \ No newline at end of file