1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
4 Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
11 <required-capabilities>
12 <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg?module=odl-bgp-rib-cfg&revision=2013-07-01</capability>
13 <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi?module=odl-bgp-rib-spi-cfg&revision=2013-11-15</capability>
14 <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl?module=odl-bgp-rib-impl-cfg&revision=2016-03-30</capability>
15 <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:topology:provider?module=odl-bgp-topology-provider-cfg&revision=2013-11-15</capability>
16 <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv6?module=odl-bgp-treachability-ipv6-cfg&revision=2013-11-15</capability>
17 <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv4?module=odl-bgp-treachability-ipv4-cfg&revision=2013-11-15</capability>
18 <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&revision=2013-10-28</capability>
19 <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom?module=opendaylight-md-sal-dom&revision=2013-10-28</capability>
20 <capability>urn:opendaylight:params:xml:ns:yang:controller:topology?module=odl-topology-api-cfg&revision=2013-11-15</capability>
21 <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp-openconfig-spi?module=odl-bgp-openconfig-spi-cfg&revision=2015-09-25</capability>
22 </required-capabilities>
25 <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
26 <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
28 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-acceptor</type>
29 <name>bgp-peer-server</name>
31 <!--Default parameters-->
32 <!--<binding-address>0.0.0.0</binding-address>-->
34 <!--Default binding-port 179-->
35 <binding-port>1790</binding-port>
37 <accepting-bgp-dispatcher>
38 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
39 <name>global-bgp-dispatcher</name>
40 </accepting-bgp-dispatcher>
41 <accepting-peer-registry>
42 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
43 <name>global-bgp-peer-registry</name>
44 </accepting-peer-registry>
48 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">prefix:advertise-n-paths</type>
50 <n-best-paths>2</n-best-paths>
53 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">prefix:advertise-all-paths</type>
54 <name>all-paths</name>
57 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-psm-impl</type>
58 <name>ipv4-unicast-path-selection-mode</name>
60 <type xmlns:ribimpl="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">ribimpl:bgp-table-type</type>
61 <name>ipv4-unicast</name>
62 </path-address-family>
64 <type xmlns:ribimpl="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">ribimpl:path-selection-mode-factory</type>
66 </path-selection-mode>
70 A single BGP peer. Note this section is deactivated because a misconfigured peer
71 tends to log rather nasty error messages.
73 For TCP-MD5 support, make sure the dispatcher associated with the rib has
74 "md5-channel-factory" attribute set and then add a "password" attribute here.
75 Note that the peer has to have the same password configured, otherwise the
76 connection will not be established.
77 If peer role is not present, default value "ibgp" will be used (allowed values are also "ebgp" and
80 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type>
81 <name>example-bgp-peer</name>
82 <host>192.0.2.1</host>
83 <holdtimer>180</holdtimer>
84 <retrytimer>10</retrytimer>
85 <peer-role>ibgp</peer-role>
87 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
88 <name>example-bgp-rib</name>
91 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
92 <name>global-bgp-peer-registry</name>
95 <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-rpc-registry</type>
96 <name>binding-rpc-broker</name>
99 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
100 <name>ipv4-unicast</name>
103 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
104 <name>ipv6-unicast</name>
107 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
108 <name>linkstate</name>
111 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
112 <name>ipv4-flowspec</name>
115 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
116 <name>ipv6-flowspec</name>
119 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
120 <name>ipv4-labeled-unicast</name>
123 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
124 <name>ipv6-labeled-unicast</name>
127 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
128 <name>ipv4-l3vpn</name>
131 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
132 <name>ipv6-l3vpn</name>
135 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
139 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:add-path</type>
140 <name>ipv4-unicast-both</name>
143 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:add-path</type>
144 <name>ipv6-unicast-both</name>
150 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-impl</type>
151 <name>example-bgp-rib</name>
152 <rib-id>example-bgp-rib</rib-id>
153 <local-as>64496</local-as>
154 <bgp-rib-id>192.0.2.2</bgp-rib-id>
155 <!-- if cluster-id is not present, it's value is the same as bgp-id -->
156 <!-- <cluster-id>192.0.2.3</cluster-id> -->
158 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
159 <name>ipv4-unicast</name>
162 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
163 <name>ipv6-unicast</name>
166 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
167 <name>linkstate</name>
170 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
171 <name>ipv4-flowspec</name>
174 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
175 <name>ipv6-flowspec</name>
178 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
179 <name>ipv4-labeled-unicast</name>
182 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
183 <name>ipv6-labeled-unicast</name>
186 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
187 <name>ipv4-l3vpn</name>
190 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
191 <name>ipv6-l3vpn</name>
194 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
197 <!--<rib-path-selection-mode>
198 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-path-selection-mode</type>
199 <name>ipv4-unicast-path-selection-mode</name>
200 </rib-path-selection-mode>-->
202 <type xmlns:ribspi="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi">ribspi:extensions</type>
203 <name>global-rib-extensions</name>
206 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
207 <name>global-bgp-dispatcher</name>
210 <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
211 <name>pingpong-binding-data-broker</name>
214 <type xmlns:sal="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">sal:dom-async-data-broker</type>
215 <name>pingpong-broker</name>
218 <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-codec-tree-factory</type>
219 <name>runtime-mapping-singleton</name>
220 </codec-tree-factory>
221 <openconfig-provider>
222 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp-openconfig-spi">prefix:bgp-openconfig-provider</type>
223 <name>openconfig-bgp</name>
224 </openconfig-provider>
227 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv4">prefix:bgp-reachability-ipv4</type>
228 <name>example-ipv4-topology</name>
230 <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
231 <name>pingpong-binding-data-broker</name>
234 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
235 <name>example-bgp-rib</name>
237 <topology-id>example-ipv4-topology</topology-id>
240 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv6">prefix:bgp-reachability-ipv6</type>
241 <name>example-ipv6-topology</name>
243 <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
244 <name>pingpong-binding-data-broker</name>
247 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
248 <name>example-bgp-rib</name>
250 <topology-id>example-ipv6-topology</topology-id>
253 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:topology:provider">prefix:bgp-linkstate-topology</type>
254 <name>example-linkstate-topology</name>
256 <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
257 <name>pingpong-binding-data-broker</name>
260 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
261 <name>example-bgp-rib</name>
263 <topology-id>example-linkstate-topology</topology-id>
267 <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
269 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
271 <name>example-ipv4-topology</name>
272 <provider>/config/modules/module[name='bgp-reachability-ipv4']/instance[name='example-ipv4-topology']</provider>
276 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
278 <name>example-bgp-rib</name>
279 <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
283 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
285 <name>example-bgp-rib</name>
286 <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
290 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
292 <name>example-ipv6-topology</name>
293 <provider>/config/modules/module[name='bgp-reachability-ipv6']/instance[name='example-ipv6-topology']</provider>
297 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
299 <name>example-linkstate-topology</name>
300 <provider>/config/modules/module[name='bgp-linkstate-topology']/instance[name='example-linkstate-topology']</provider>
304 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">prefix:path-selection-mode-factory</type>
307 <provider>/config/modules/module[name='advertise-n-paths']/instance[name='n-paths']</provider>
311 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">prefix:path-selection-mode-factory</type>
313 <name>all-paths</name>
314 <provider>/config/modules/module[name='advertise-all-paths']/instance[name='all-paths']</provider>
318 <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-path-selection-mode</type>
320 <name>ipv4-unicast-path-selection-mode</name>
321 <provider>/modules/module[type='bgp-psm-impl'][name='ipv4-unicast-path-selection-mode']</provider>