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=d4dad11ec3b4f70e67ede2e1ddc4f690d59e9b52;hp=45f10162ca7edd600ca86bc5a56ac3cfb229fafb;hb=87e068952fe9207ccccbcebdaac2de09743e2403;hpb=1306d0ed4b53625a1ba83e6aa5d693cd12ce7001 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 45f10162ca..d4dad11ec3 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 @@ -6,12 +6,12 @@ module odl-sal-netconf-connector-cfg { import config { prefix config; revision-date 2013-04-05; } import threadpool {prefix th;} import netty {prefix netty;} - import ietf-inet-types {prefix inet;} import opendaylight-md-sal-dom {prefix dom;} + import odl-netconf-cfg { prefix cfg-net; revision-date 2014-04-08; } description "Service definition for Binding Aware MD-SAL."; - + revision "2013-10-28" { description "Initial revision"; @@ -27,7 +27,7 @@ module odl-sal-netconf-connector-cfg { leaf address { type string; } - + leaf port { type uint32; } @@ -37,7 +37,7 @@ module odl-sal-netconf-connector-cfg { augment "/config:modules/config:module/config:configuration" { case sal-netconf-connector { when "/config:modules/config:module/config:type = 'sal-netconf-connector'"; - + leaf address { type string; } @@ -46,6 +46,18 @@ module odl-sal-netconf-connector-cfg { type uint32; } + leaf tcp-only { + type boolean; + } + + leaf username { + type string; + } + + leaf password { + type string; + } + container dom-registry { uses config:service-ref { refine type { @@ -55,21 +67,65 @@ module odl-sal-netconf-connector-cfg { } } + // 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 { uses config:service-ref { refine type { + mandatory false; config:required-identity netty:netty-threadgroup; } } } + // 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 { uses config:service-ref { refine type { + mandatory false; config:required-identity netty:netty-threadgroup; } } } + + container event-executor { + uses config:service-ref { + refine type { + config:required-identity netty:netty-event-executor; + } + } + } + + // Replaces thread group dependencies + container client-dispatcher { + uses config:service-ref { + refine type { + mandatory false; + config:required-identity cfg-net:netconf-client-dispatcher; + } + } + } + + leaf connection-timeout-millis { + description "Specifies timeout in milliseconds after which connection must be established."; + type uint32; + default 20000; + } + + leaf max-connection-attempts { + description "Maximum number of connection retries. Non positive value or null is interpreted as infinity."; + type uint32; + default 0; // retry forever + } + + leaf between-attempts-timeout-millis { + description "Timeout in milliseconds to wait between connection attempts."; + type uint16; + default 10000; + } } } } \ No newline at end of file