diff options
author | Jessica Wagantall <jwagantall@linuxfoundation.org> | 2020-12-01 11:31:55 -0800 |
---|---|---|
committer | Jessica Wagantall <jwagantall@linuxfoundation.org> | 2020-12-01 11:31:55 -0800 |
commit | a0e97e71a49a8b54fddf8fb004b32f202f114011 (patch) | |
tree | 054113a630c57918635bace46ec58e80e7a08b54 /restconf-client/provider/src/test/resources/yang/identity-test.yang | |
parent | 11510b43c277b8e1dd7e58d79785544810118c8e (diff) | |
parent | 8aafc0589b1c01af7828760c19254a2c2d1b0250 (diff) |
Merge branch 'master' of /home/jwagantall/linuxfoundation/onap/IT-21112/sli-plugins
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Diffstat (limited to 'restconf-client/provider/src/test/resources/yang/identity-test.yang')
-rw-r--r-- | restconf-client/provider/src/test/resources/yang/identity-test.yang | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/restconf-client/provider/src/test/resources/yang/identity-test.yang b/restconf-client/provider/src/test/resources/yang/identity-test.yang new file mode 100644 index 000000000..12ef717f6 --- /dev/null +++ b/restconf-client/provider/src/test/resources/yang/identity-test.yang @@ -0,0 +1,77 @@ +module identity-test { + yang-version 1.1; + namespace "identity:ns:test:json:ser"; + prefix "id"; + + import identity-types { + prefix "type"; + } + + import identity-types-second { + prefix "sec"; + } + + revision "2013-07-15"; + + identity optical { + base type:int-type; + } + + identity Giga { + base type:physical; + } + + typedef available { + type identityref { + base "type:physical"; + } + } + + typedef typed{ + type union { + type int32; + type int8; + type identityref { + base type:int-type; + } + } + } + + container test { + leaf l { + type string; + } + container con1 { + leaf interface { + type identityref { + base "type:int-type"; + } + } + container interfaces { + list int-list { + key "iden"; + leaf iden { + type "id:typed"; + } + container available { + leaf-list ll { + type available; + } + leaf leaf1 { + type leafref { + path "../../iden"; + } + } + + leaf leaf2 { + type identityref { + base type:int-type; + base sec:iden1; + } + } + } + } + } + } + } +} |