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; }
11 import test-groups { prefix tg; revision-date 2014-12-08; }
16 revision "2013-04-03" {
22 base config:module-type;
23 config:provided-service test:testing;
24 config:java-name-prefix TestImpl;
28 base config:module-type;
29 config:provided-service test:testing;
30 config:java-name-prefix DepTestImpl;
33 identity impl-netconf {
34 base config:module-type;
35 config:provided-service test:testing;
36 config:java-name-prefix NetconfTestImpl;
39 identity impl-identity-test {
40 base config:module-type;
41 config:provided-service test:testing;
42 config:java-name-prefix IdentityTest;
45 identity multiple-dependencies {
46 base config:module-type;
47 config:provided-service test:testing;
48 config:java-name-prefix MultipleDependencies;
51 augment "/config:modules/config:module/config:configuration" {
52 case impl-identity-test {
53 when "/config:modules/config:module/config:type = 'impl-identity-test'";
57 base tt:test-identity1;
61 container identities-container {
64 base tt:test-identity1;
72 base tt:test-identity1;
77 base tt:test-identity1;
81 container identities-inner {
84 base tt:test-identity1;
93 augment "/config:modules/config:module/config:state" {
94 case impl-identity-test {
95 when "/config:modules/config:module/config:type = 'impl-identity-test'";
101 augment "/config:modules/config:module/config:configuration" {
103 when "/config:modules/config:module/config:type = 'impl'";
105 leaf-list allow-user {
107 description "A list of user name patterns to allow";
117 type inet:port-number;
122 type inet:ipv4-address;
153 augment "/config:modules/config:module/config:state" {
155 when "/config:modules/config:module/config:type = 'impl'";
157 leaf created-sessions {
163 augment "/config:modules/config:module/config:configuration" {
165 when "/config:modules/config:module/config:type = 'impl-dep'";
169 augment "/config:modules/config:module/config:configuration" {
171 when "/config:modules/config:module/config:type = 'impl-netconf'";
172 container impl-netconf {
175 default ZGVmYXVsdEJpbg==;
180 default "default-string";
188 leaf extended-twice {
189 type tt:extend-twice;
199 type inet:ip-address;
200 default 0:0:0:0:0:0:0:1;
203 leaf union-test-attr {
220 container dto-a-inner {
225 container dto-a-inner-inner {
252 leaf simple-BigInteger {
272 leaf-list simple-list {
289 leaf-list simple-list {
293 list complex-dto-bInner {
294 leaf-list simple-list {
330 container testing-dep {
331 uses config:service-ref {
334 config:required-identity test:testing;
340 uses config:service-ref {
343 config:required-identity test:testing;
351 grouping netconf-impl-rpc {
352 rpcx:rpc-context-instance netconf-impl-rpc-ctx;
355 identity netconf-impl-rpc-ctx;
357 rpc netconf-impl-rpc-from-grouping {
359 uses rpcx:rpc-context-ref {
360 refine context-instance {
361 rpcx:rpc-context-instance "netconf-impl-rpc-ctx";
367 augment "/config:modules/config:module/config:state" {
369 when "/config:modules/config:module/config:type = 'impl-netconf'";
370 container impl-netconf {
372 rpcx:rpc-context-instance "test-rpc";
374 // add some stats + rpc from groupings outside this module
375 uses tt:common-operational;
376 uses tg:common-operational-rpc;
377 uses netconf-impl-rpc;
380 leaf created-sessions {
395 list inner-running-data-additional {
396 config:inner-state-bean;
399 rpcx:rpc-context-instance "inner-test-rpc";
418 list inner-running-data {
419 config:inner-state-bean;
433 list inner-inner-running-data {
434 config:inner-state-bean;
436 rpcx:rpc-context-instance "inner-inner-test-rpc";
437 rpcx:rpc-context-instance "complex-output-rpc";
445 leaf-list list-of-strings {
449 list not-state-bean {
454 list not-state-bean-internal {
455 // This should be ignored
456 config:inner-state-bean;
478 augment "/config:modules/config:module/config:configuration" {
479 case multiple-dependencies {
480 when "/config:modules/config:module/config:type = 'multiple-dependencies'";
481 container multiple-dependencies {
483 uses config:service-ref {
486 config:required-identity test:testing;
491 uses config:service-ref {
494 config:required-identity test:testing;
509 identity inner-test-rpc;
510 identity inner-inner-test-rpc;
512 identity complex-output-rpc;
516 uses rpcx:rpc-context-ref {
517 refine context-instance {
518 rpcx:rpc-context-instance test-rpc;
533 rpc container-output {
535 uses rpcx:rpc-context-ref {
536 refine context-instance {
537 rpcx:rpc-context-instance complex-output-rpc;
543 container retValContainer {
556 rpc leaf-list-output {
558 uses rpcx:rpc-context-ref {
559 refine context-instance {
560 rpcx:rpc-context-instance complex-output-rpc;
574 uses rpcx:rpc-context-ref {
575 refine context-instance {
576 rpcx:rpc-context-instance complex-output-rpc;
596 uses rpcx:rpc-context-ref {
597 refine context-instance {
598 rpcx:rpc-context-instance inner-test-rpc;
604 rpc noArgInnerInner {
606 uses rpcx:rpc-context-ref {
607 refine context-instance {
608 rpcx:rpc-context-instance inner-inner-test-rpc;