X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fsamples%2Fmaven-code-gen-sample%2Fsrc%2Fmain%2Fyang%2Faugment-monitoring%402013-07-01.yang;fp=binding%2Fsamples%2Fmaven-code-gen-sample%2Fsrc%2Fmain%2Fyang%2Faugment-monitoring%402013-07-01.yang;h=a9c357ac63056998a47e1fb0b176e2e8c3f11f12;hb=470e20edf85dbf3731d1fea7fde5eab7bd3afe95;hp=0000000000000000000000000000000000000000;hpb=0835b2cf948156252e2363a53f3dd48853bd27ab;p=mdsal.git diff --git a/binding/samples/maven-code-gen-sample/src/main/yang/augment-monitoring@2013-07-01.yang b/binding/samples/maven-code-gen-sample/src/main/yang/augment-monitoring@2013-07-01.yang new file mode 100644 index 0000000000..a9c357ac63 --- /dev/null +++ b/binding/samples/maven-code-gen-sample/src/main/yang/augment-monitoring@2013-07-01.yang @@ -0,0 +1,88 @@ +module augment-monitoring { + yang-version 1; + namespace "urn:ietf:params:xml:ns:yang:augment-monitoring"; + prefix "amon"; + + import choice-monitoring { prefix nm; } + + organization "OPEN DAYLIGHT"; + contact "http://www.opendaylight.org/"; + + revision "2013-07-01" { + reference "NO REF"; + } + + augment "/nm:netconf-state/nm:datastores/nm:datastore/nm:locks/nm:lock-type" { + case autonomous-lock { + container autonomous-def { + leaf lock-id { + type int32; + } + + leaf lock-time { + type uint32; + } + } + } + + case anonymous-lock { + leaf lock-time { + type uint32; + } + } + + leaf leaf-aug-case { + type string; + } + } + + augment "/nm:netconf-state/nm:datastores/nm:datastore/nm:locks/nm:lock-type/nm:partial-lock" { + choice aug-case-by-choice { + case foo { + leaf foo { + type string; + } + } + + case bar { + leaf bar { + type boolean; + } + } + } + } + + augment "/nm:netconf-state/nm:datastores/nm:datastore" { + choice storage-format { + case _xml { + container _xml-def { + leaf file-name { + type string; + } + } + } + + case yang { + leaf yang-file-name { + type string; + } + } + + case unknown-files { + list files { + key "file-name"; + + leaf file-name { + type string; + } + + container file-data { + leaf utf8-data { + type string; + } + } + } + } + } + } +}