X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fyang-jmx-generator%2Fsrc%2Ftest%2Fresources%2Ftest-config-threads-java.yang;h=a6d2feaf044bb2f9865ec322612eb624b4594ea1;hp=4af5b9569a445dfba4d601d18c7f76bf0f64ba0a;hb=c222e37f2a0f0f3f6266242fbea2d3b018f4e6e3;hpb=356f96ce57f8c099ce98e38b4053c075050bda10 diff --git a/opendaylight/config/yang-jmx-generator/src/test/resources/test-config-threads-java.yang b/opendaylight/config/yang-jmx-generator/src/test/resources/test-config-threads-java.yang index 4af5b9569a..a6d2feaf04 100644 --- a/opendaylight/config/yang-jmx-generator/src/test/resources/test-config-threads-java.yang +++ b/opendaylight/config/yang-jmx-generator/src/test/resources/test-config-threads-java.yang @@ -56,6 +56,12 @@ module config-threads-java { } } + grouping async-eventbus-config-attrs { + leaf cfg-attr { + type string; + } + } + augment "/config:modules/config:module/config:configuration" { case async-eventbus { when "/config:modules/config:module/config:type = 'async-eventbus'"; @@ -66,6 +72,10 @@ module config-threads-java { } } } + + container from-grouping { + uses async-eventbus-config-attrs; + } } } augment "/config:modules/config:module/config:state" { @@ -192,42 +202,44 @@ module config-threads-java { augment "/config:modules/config:module/config:configuration" { case threadpool-dynamic { when "/config:modules/config:module/config:type = 'threadpool-dynamic'"; - leaf core-size { - type uint32; - } + container threadpool-dynamic { + leaf core-size { + type uint32; + } - leaf keep-alive { - type uint32; - units seconds; - default 10; - } + leaf keep-alive { + type uint32; + units seconds; + default 10; + } - leaf maximum-size { - type uint32; - description "maximum-size description"; - } + leaf maximum-size { + type uint32; + description "maximum-size description"; + } - leaf binary { - type binary; - } + leaf binary { + type binary; + } - container threadfactory { - description "threadfactory description"; - uses config:service-ref { - refine type { - mandatory true; - config:required-identity th2:threadfactory; + container threadfactory { + description "threadfactory description"; + uses config:service-ref { + refine type { + mandatory true; + config:required-identity th2:threadfactory; + } } } - } - leaf-list users { - type string; - } + leaf-list users { + type string; + } - leaf-list users-numbers { - type uint32; - description "numbers of users description"; + leaf-list users-numbers { + type uint32; + description "numbers of users description"; + } } } } @@ -235,9 +247,11 @@ module config-threads-java { augment "/config:modules/config:module/config:state" { case threadpool-dynamic { when "/config:modules/config:module/config:type = 'threadpool-dynamic'"; - // root runtime bean - leaf created-sessions { - type uint32; + container threadpool-dynamic { + // root runtime bean + leaf created-sessions { + type uint32; + } } } }