1 // vi: set smarttab et sw=4 tabstop=4:
4 namespace "urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl";
7 import bgp-listener { prefix bgpl; revision-date 2013-04-09; }
8 import bgp-rib { prefix bgprib; revision-date 2013-07-01; }
9 import config-bgp-parser-spi { prefix bgpspi; revision-date 2013-11-15; }
10 import config-bgp-rib-spi { prefix ribspi; revision-date 2013-11-15; }
11 import opendaylight-md-sal-binding {prefix mdsb; revision-date 2013-10-28; }
12 import threadpool { prefix th; revision-date 2013-04-09; }
13 import config { prefix config; revision-date 2013-04-05; }
15 organization "Cisco Systems, Inc.";
17 contact "Robert Varga <rovarga@cisco.com>";
20 "This module contains the base YANG definitions for
21 BGP listener implementation.
23 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.;
25 This program and the accompanying materials are made available
26 under the terms of the Eclipse Public License v1.0 which
27 accompanies this distribution, and is available at
28 http://www.eclipse.org/legal/epl-v10.html";
30 revision "2013-04-09" {
35 identity base-bgp-parser {
36 base config:module-type;
37 config:java-name-prefix BaseBGPParser;
40 augment "/config:modules/config:module/config:configuration" {
41 case base-bgp-parser {
42 when "/config:modules/config:module/config:type = 'base-bgp-parser'";
44 container bgp-extensions {
45 uses config:service-ref {
48 config:required-identity bgpspi:extensions;
55 identity bgp-message-factory {
57 "Service representing a BGP proposal.";
59 base "config:service-type";
60 config:java-class "org.opendaylight.protocol.bgp.parser.BGPMessageFactory";
63 identity bgp-message-factory-impl {
64 base config:module-type;
65 config:provided-service bgp-message-factory;
66 config:java-name-prefix BGPMessageFactoryImpl;
69 augment "/config:modules/config:module/config:configuration" {
70 case bgp-message-factory-impl {
71 when "/config:modules/config:module/config:type = 'bgp-message-factory-impl'";
73 container bgp-extensions {
74 uses config:service-ref {
77 config:required-identity bgpspi:consumer-extensions;
84 identity bgp-rib-extensions-impl {
85 base config:module-type;
86 config:provided-service ribspi:extensions;
87 config:java-name-prefix RIBExtensionsImpl;
90 augment "/config:modules/config:module/config:configuration" {
91 case bgp-rib-extensions-impl {
92 when "/config:modules/config:module/config:type = 'bgp-rib-extensions-impl'";
96 identity bgp-proposal {
98 "Service representing a BGP proposal.";
100 base "config:service-type";
101 config:java-class "org.opendaylight.protocol.bgp.rib.impl.spi.BGPSessionProposal";
104 identity bgp-proposal-impl {
105 base config:module-type;
106 config:provided-service bgp-proposal;
107 config:java-name-prefix BGPSessionProposalImpl;
110 augment "/config:modules/config:module/config:configuration" {
111 case bgp-proposal-impl {
112 when "/config:modules/config:module/config:type = 'bgp-proposal-impl'";
131 identity bgp-dispatcher {
133 "Service representing a BGP Dispatcher.";
135 base "config:service-type";
136 config:java-class "org.opendaylight.protocol.bgp.rib.impl.spi.BGPDispatcher";
139 identity bgp-dispatcher-impl {
140 base config:module-type;
141 config:provided-service bgp-dispatcher;
142 config:java-name-prefix BGPDispatcherImpl;
145 augment "/config:modules/config:module/config:configuration" {
146 case bgp-dispatcher-impl {
147 when "/config:modules/config:module/config:type = 'bgp-dispatcher-impl'";
149 container message-factory {
150 uses config:service-ref {
153 config:required-identity bgp-message-factory;
158 container boss-group {
159 uses config:service-ref {
162 config:required-identity th:netty-threadgroup;
167 container worker-group {
168 uses config:service-ref {
171 config:required-identity th:netty-threadgroup;
179 base config:module-type;
180 config:provided-service bgpl:listener;
181 config:java-name-prefix BGPImpl;
185 augment "/config:modules/config:module/config:configuration" {
187 when "/config:modules/config:module/config:type = 'bgp-impl'";
189 container bgp-dispatcher {
190 uses config:service-ref {
193 config:required-identity bgp-dispatcher;
198 container bgp-proposal {
199 uses config:service-ref {
202 config:required-identity bgp-proposal;
220 base config:module-type;
221 config:provided-service bgprib:rib;
222 config:java-name-prefix RIBImpl;
226 augment "/config:modules/config:module/config:configuration" {
228 when "/config:modules/config:module/config:type = 'rib-impl'";
231 uses config:service-ref {
234 config:required-identity bgpl:listener;
239 container extensions {
240 uses config:service-ref {
243 config:required-identity ribspi:consumer-extensions;
253 leaf connection-timeout {
258 leaf reconnect-attempts {
263 container osgi-registry {
264 uses config:service-ref {
267 config:required-identity mdsb:binding-broker-osgi-registry;