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=8e2808936ce47e52f7b33b808269b7e608d54f12;hp=de8ab63c0a72b403438505f5f3aeadb918e0e4b9;hb=35d50d7b5b69ebb08c753a699bf0aa1e645027fe;hpb=ebb4158697741bc88fde22ac5f75edf65869506f 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 de8ab63c0a..8e2808936c 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 @@ -21,6 +21,18 @@ module opendaylight-sal-binding-broker-impl { config:java-class "org.opendaylight.controller.md.sal.binding.impl.BindingToNormalizedNodeCodec"; } + /* FIXME: move to opendaylight-md-sal-binding (cannot be there due to Class name confict with old implementation)*/ + identity binding-new-notification-service { + base config:service-type; + config:java-class "org.opendaylight.controller.md.sal.binding.api.NotificationService"; + } + + /* TODO: move to opendaylight-md-sal-binding (cannot be there due to Class name confict with old implementation)*/ + identity binding-new-notification-publish-service { + base config:service-type; + config:java-class "org.opendaylight.controller.md.sal.binding.api.NotificationPublishService"; + } + identity binding-broker-impl { base config:module-type; config:provided-service sal:binding-broker-osgi-registry; @@ -34,7 +46,7 @@ module opendaylight-sal-binding-broker-impl { config:provided-service sal:binding-data-consumer-broker; config:java-name-prefix ForwardedCompatibleDataBrokerImpl; } - + identity binding-forwarded-data-broker { base config:module-type; config:provided-service sal:binding-async-data-broker; @@ -60,6 +72,18 @@ module opendaylight-sal-binding-broker-impl { config:java-name-prefix RuntimeMapping; } + identity binding-notification-adapter { + base config:module-type; + config:provided-service binding-new-notification-service; + config:java-name-prefix BindingNotificationAdapter; + } + + identity binding-notification-publish-adapter { + base config:module-type; + config:provided-service binding-new-notification-publish-service; + config:java-name-prefix BindingNotificationPublishAdapter; + } + grouping dom-forwarding-component { container dom-async-broker { uses config:service-ref { @@ -130,7 +154,7 @@ module opendaylight-sal-binding-broker-impl { uses dom-forwarding-component; } } - + augment "/config:modules/config:module/config:configuration" { case binding-forwarded-data-broker { when "/config:modules/config:module/config:type = 'binding-forwarded-data-broker'"; @@ -178,10 +202,29 @@ module opendaylight-sal-binding-broker-impl { uses common:rpc-state; } } + augment "/config:modules/config:module/config:state" { case binding-notification-broker { when "/config:modules/config:module/config:type = 'binding-notification-broker'"; uses common:notification-state; } } + + augment "/config:modules/config:module/config:configuration" { + case binding-notification-adapter { + when "/config:modules/config:module/config:type = 'binding-notification-adapter'"; + container binding-notification-adapter { + uses dom-forwarding-component; + } + } + } + + augment "/config:modules/config:module/config:configuration" { + case binding-notification-publish-adapter { + when "/config:modules/config:module/config:type = 'binding-notification-publish-adapter'"; + container binding-notification-publish-adapter { + uses dom-forwarding-component; + } + } + } }