1 module config-test-impl {
3 namespace "urn:opendaylight:params:xml:ns:yang:controller:test:impl";
6 import config-test { prefix test; revision-date 2013-06-13;}
7 import config { prefix config; revision-date 2013-04-05; }
8 import ietf-inet-types { prefix inet; revision-date 2010-09-24;}
9 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
10 import test-types { prefix tt; revision-date 2013-11-27; }
15 revision "2013-04-03" {
21 base config:module-type;
22 config:provided-service test:testing;
23 config:java-name-prefix TestImpl;
27 base config:module-type;
28 config:provided-service test:testing;
29 config:java-name-prefix DepTestImpl;
32 identity impl-netconf {
33 base config:module-type;
34 config:provided-service test:testing;
35 config:java-name-prefix NetconfTestImpl;
39 augment "/config:modules/config:module/config:configuration" {
41 when "/config:modules/config:module/config:type = 'impl'";
43 leaf-list allow-user {
45 description "A list of user name patterns to allow";
55 type inet:port-number;
60 type inet:ipv4-address;
66 // TODO defaults for union default 0:0:0:0:0:0:0:1;
95 augment "/config:modules/config:module/config:state" {
97 when "/config:modules/config:module/config:type = 'impl'";
99 leaf created-sessions {
105 augment "/config:modules/config:module/config:configuration" {
107 when "/config:modules/config:module/config:type = 'impl-dep'";
111 augment "/config:modules/config:module/config:configuration" {
113 when "/config:modules/config:module/config:type = 'impl-netconf'";
116 default ZGVmYXVsdEJpbg==;
121 default "default-string";
129 leaf extended-twice {
130 type tt:extend-twice;
151 container dto-a-inner {
156 container dto-a-inner-inner {
183 leaf simple-BigInteger {
203 leaf-list simple-list {
220 leaf-list simple-list {
224 list complex-dto-bInner {
225 leaf-list simple-list {
261 container testing-dep {
262 uses config:service-ref {
265 config:required-identity test:testing;
271 uses config:service-ref {
274 config:required-identity test:testing;
281 augment "/config:modules/config:module/config:state" {
283 when "/config:modules/config:module/config:type = 'impl-netconf'";
285 rpcx:rpc-context-instance "test-rpc";
288 leaf created-sessions {
303 list inner-running-data-additional {
304 config:inner-state-bean;
307 rpcx:rpc-context-instance "inner-test-rpc";
326 list inner-running-data {
327 config:inner-state-bean;
341 list inner-inner-running-data {
342 config:inner-state-bean;
344 rpcx:rpc-context-instance "inner-inner-test-rpc";
345 rpcx:rpc-context-instance "complex-output-rpc";
353 leaf-list list-of-strings {
357 list not-state-bean {
362 list not-state-bean-internal {
363 // This should be ignored
364 config:inner-state-bean;
383 identity inner-test-rpc;
384 identity inner-inner-test-rpc;
386 identity complex-output-rpc;
390 uses rpcx:rpc-context-ref {
391 refine context-instance {
392 rpcx:rpc-context-instance test-rpc;
407 rpc container-output {
409 uses rpcx:rpc-context-ref {
410 refine context-instance {
411 rpcx:rpc-context-instance complex-output-rpc;
417 container retValContainer {
430 rpc leaf-list-output {
432 uses rpcx:rpc-context-ref {
433 refine context-instance {
434 rpcx:rpc-context-instance complex-output-rpc;
448 uses rpcx:rpc-context-ref {
449 refine context-instance {
450 rpcx:rpc-context-instance complex-output-rpc;
470 uses rpcx:rpc-context-ref {
471 refine context-instance {
472 rpcx:rpc-context-instance inner-test-rpc;
478 rpc noArgInnerInner {
480 uses rpcx:rpc-context-ref {
481 refine context-instance {
482 rpcx:rpc-context-instance inner-inner-test-rpc;