X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fyang%2Fopendaylight-binding-broker-impl.yang;h=de8ab63c0a72b403438505f5f3aeadb918e0e4b9;hp=4456dea77f98fad1f4f43c79f67b224d9e44990e;hb=ed6019236d78a69577888f60064c3714eaa80f6a;hpb=c7ec8db7f107b5e265f4e8b2fe3dd0f7b1163b64 diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/yang/opendaylight-binding-broker-impl.yang b/opendaylight/md-sal/sal-binding-broker/src/main/yang/opendaylight-binding-broker-impl.yang index 4456dea77f..de8ab63c0a 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/yang/opendaylight-binding-broker-impl.yang +++ b/opendaylight/md-sal/sal-binding-broker/src/main/yang/opendaylight-binding-broker-impl.yang @@ -18,10 +18,9 @@ module opendaylight-sal-binding-broker-impl { identity binding-dom-mapping-service { base config:service-type; - config:java-class "org.opendaylight.yangtools.yang.data.impl.codec.BindingIndependentMappingService"; + config:java-class "org.opendaylight.controller.md.sal.binding.impl.BindingToNormalizedNodeCodec"; } - identity binding-broker-impl { base config:module-type; config:provided-service sal:binding-broker-osgi-registry; @@ -29,13 +28,6 @@ module opendaylight-sal-binding-broker-impl { config:java-name-prefix BindingBrokerImpl; } - identity binding-data-broker { - base config:module-type; - config:provided-service sal:binding-data-broker; - config:provided-service sal:binding-data-consumer-broker; - config:java-name-prefix DataBrokerImpl; - } - identity binding-data-compatible-broker { base config:module-type; config:provided-service sal:binding-data-broker; @@ -105,7 +97,7 @@ module opendaylight-sal-binding-broker-impl { container data-broker { uses config:service-ref { refine type { - mandatory true; + mandatory false; config:required-identity sal:binding-data-broker; } } @@ -119,26 +111,12 @@ module opendaylight-sal-binding-broker-impl { } } } - } - } - augment "/config:modules/config:module/config:configuration" { - case binding-data-broker { - when "/config:modules/config:module/config:type = 'binding-data-broker'"; - container dom-broker { + container root-data-broker { uses config:service-ref { refine type { - mandatory true; - config:required-identity dom:dom-broker-osgi-registry; - } - } - } - - container mapping-service { - uses config:service-ref { - refine type { - mandatory true; - config:required-identity binding-dom-mapping-service; + mandatory false; + config:required-identity sal:binding-async-data-broker; } } } @@ -157,7 +135,32 @@ module opendaylight-sal-binding-broker-impl { case binding-forwarded-data-broker { when "/config:modules/config:module/config:type = 'binding-forwarded-data-broker'"; container binding-forwarded-data-broker { - uses dom-forwarding-component; + container dom-async-broker { + uses config:service-ref { + refine type { + mandatory true; + config:required-identity dom:dom-async-data-broker; + } + } + } + + container binding-mapping-service { + uses config:service-ref { + refine type { + mandatory true; + config:required-identity binding-dom-mapping-service; + } + } + } + + container schema-service { + uses config:service-ref { + refine type { + mandatory false; + config:required-identity dom:schema-service; + } + } + } } } } @@ -169,14 +172,6 @@ module opendaylight-sal-binding-broker-impl { } } - augment "/config:modules/config:module/config:state" { - case binding-data-broker { - when "/config:modules/config:module/config:type = 'binding-data-broker'"; - container data { - uses common:data-state; - } - } - } augment "/config:modules/config:module/config:state" { case binding-rpc-broker { when "/config:modules/config:module/config:type = 'binding-rpc-broker'";