X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fyang-test%2Fsrc%2Fmain%2Fyang%2Fconfig-test-impl.yang;h=c82da58c150ff8067c0d9933b50250228eec0431;hb=5f0a19773c0389e25367dabd19021a434f6b6f3f;hp=9ad7a44915b15bdfbce7a64cbdaf2eb02f8bba14;hpb=c2428fea0ac263712ab6e5dc879e19c9cf2a7c4d;p=controller.git diff --git a/opendaylight/config/yang-test/src/main/yang/config-test-impl.yang b/opendaylight/config/yang-test/src/main/yang/config-test-impl.yang index 9ad7a44915..c82da58c15 100644 --- a/opendaylight/config/yang-test/src/main/yang/config-test-impl.yang +++ b/opendaylight/config/yang-test/src/main/yang/config-test-impl.yang @@ -35,6 +35,61 @@ module config-test-impl { config:java-name-prefix NetconfTestImpl; } + identity impl-identity-test { + base config:module-type; + config:provided-service test:testing; + config:java-name-prefix IdentityTest; + } + + augment "/config:modules/config:module/config:configuration" { + case impl-identity-test { + when "/config:modules/config:module/config:type = 'impl-identity-test'"; + + leaf afi { + type identityref { + base tt:test-identity1; + } + } + + container identities-container { + leaf afi { + type identityref { + base tt:test-identity1; + } + } + } + + list identities { + leaf afi { + type identityref { + base tt:test-identity1; + } + } + leaf safi { + type identityref { + base tt:test-identity1; + } + } + + container identities-inner { + leaf afi { + type identityref { + base tt:test-identity1; + } + } + } + } + + } + } + + augment "/config:modules/config:module/config:state" { + case impl-identity-test { + when "/config:modules/config:module/config:type = 'impl-identity-test'"; + + } + } + augment "/config:modules/config:module/config:configuration" { case impl { @@ -61,10 +116,6 @@ module config-test-impl { default 127.0.0.1; } - leaf ip { - type inet:ip-address; - // TODO defaults for union default 0:0:0:0:0:0:0:1; - } } leaf as-number { @@ -136,6 +187,16 @@ module config-test-impl { default ONE; } + leaf ip { + type inet:ip-address; + default 0:0:0:0:0:0:0:1; + } + + leaf union-test-attr { + type tt:unionTest; + default 456; + } + leaf sleep-factor { type decimal64 { fraction-digits 2;