X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-netconf-connector%2Fsrc%2Fmain%2Fyang%2Fodl-sal-netconf-connector-cfg.yang;h=7059a14aa33810eff4511f30da7e2630e6a15330;hp=c59c41c4374838908cf3d7440bc71cef7940b0d3;hb=08351c185b20967cf3de414b16e97670149f5d51;hpb=63ebb308c97fc06eafe813c347f9c8d7cde541eb diff --git a/opendaylight/md-sal/sal-netconf-connector/src/main/yang/odl-sal-netconf-connector-cfg.yang b/opendaylight/md-sal/sal-netconf-connector/src/main/yang/odl-sal-netconf-connector-cfg.yang index c59c41c437..7059a14aa3 100644 --- a/opendaylight/md-sal/sal-netconf-connector/src/main/yang/odl-sal-netconf-connector-cfg.yang +++ b/opendaylight/md-sal/sal-netconf-connector/src/main/yang/odl-sal-netconf-connector-cfg.yang @@ -9,6 +9,7 @@ module odl-sal-netconf-connector-cfg { import opendaylight-md-sal-dom {prefix dom;} import opendaylight-md-sal-binding {prefix md-sal-binding; revision-date 2013-10-28;} import odl-netconf-cfg { prefix cfg-net; revision-date 2014-04-08; } + import ietf-inet-types {prefix inet; revision-date "2010-09-24";} description "Service definition for Binding Aware MD-SAL."; @@ -38,11 +39,11 @@ module odl-sal-netconf-connector-cfg { when "/config:modules/config:module/config:type = 'sal-netconf-connector'"; leaf address { - type string; + type inet:host; } leaf port { - type uint32; + type inet:port-number; } leaf tcp-only { @@ -57,45 +58,35 @@ module odl-sal-netconf-connector-cfg { type string; } - container dom-registry { - uses config:service-ref { - refine type { - mandatory true; - config:required-identity dom:dom-broker-osgi-registry; - } + container yang-module-capabilities { + leaf-list capability { + type string; + description "Set a list of capabilities to override capabilities provided in device's hello message. + Can be used for devices that do not report any yang modules in their hello message"; } } - container binding-registry { - uses config:service-ref { - refine type { - // FIXME BUG-944 make mandatory (remove backwards compatibility) - mandatory false; - config:required-identity md-sal-binding:binding-broker-osgi-registry; - } - } + leaf reconnect-on-changed-schema { + type boolean; + default false; + description "If true, the connector would auto disconnect/reconnect when schemas are changed in the remote device. + The connector subscribes (right after connect) to base netconf notifications and listens for netconf-capability-change notification"; } - // FIXME BUG-944 remove backwards compatibility - // Deprecated, replaced by client dispatcher. - // This dependency will be removed in near future and all configurations of netconf-connector need to be changed to use dispatcher dependency. - container boss-thread-group { + container dom-registry { uses config:service-ref { refine type { - mandatory false; - config:required-identity netty:netty-threadgroup; + mandatory true; + config:required-identity dom:dom-broker-osgi-registry; } } } - // FIXME BUG-944 remove backwards compatibility - // Deprecated, replaced by client dispatcher. - // This dependency will be removed in near future and all configurations of netconf-connector need to be changed to use dispatcher dependency. - container worker-thread-group { + container binding-registry { uses config:service-ref { refine type { - mandatory false; - config:required-identity netty:netty-threadgroup; + mandatory true; + config:required-identity md-sal-binding:binding-broker-osgi-registry; } } } @@ -103,6 +94,7 @@ module odl-sal-netconf-connector-cfg { container event-executor { uses config:service-ref { refine type { + mandatory true; config:required-identity netty:netty-event-executor; } } @@ -111,8 +103,7 @@ module odl-sal-netconf-connector-cfg { container processing-executor { uses config:service-ref { refine type { - // FIXME BUG-944 make mandatory (remove backwards compatibility) - mandatory false; + mandatory true; config:required-identity th:threadpool; } } @@ -120,7 +111,6 @@ module odl-sal-netconf-connector-cfg { description "Makes up for flaws in netty threading design"; } - // Replaces thread group dependencies container client-dispatcher { uses config:service-ref { refine type {