BUG-5434: BGP-LU Ipv6 Initial configuration
[bgpcep.git] / bgp / controller-config / src / main / resources / initial / 41-bgp-example.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4       Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
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
9 -->
10 <snapshot>
11     <required-capabilities>
12         <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg?module=odl-bgp-rib-cfg&amp;revision=2013-07-01</capability>
13         <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi?module=odl-bgp-rib-spi-cfg&amp;revision=2013-11-15</capability>
14         <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl?module=odl-bgp-rib-impl-cfg&amp;revision=2016-03-30</capability>
15         <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:topology:provider?module=odl-bgp-topology-provider-cfg&amp;revision=2013-11-15</capability>
16         <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv6?module=odl-bgp-treachability-ipv6-cfg&amp;revision=2013-11-15</capability>
17         <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv4?module=odl-bgp-treachability-ipv4-cfg&amp;revision=2013-11-15</capability>
18         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&amp;revision=2013-10-28</capability>
19         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom?module=opendaylight-md-sal-dom&amp;revision=2013-10-28</capability>
20         <capability>urn:opendaylight:params:xml:ns:yang:controller:topology?module=odl-topology-api-cfg&amp;revision=2013-11-15</capability>
21         <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp-openconfig-spi?module=odl-bgp-openconfig-spi-cfg&amp;revision=2015-09-25</capability>
22     </required-capabilities>
23     <configuration>
24
25         <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
26             <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
27                 <module>
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>
30
31                     <!--Default parameters-->
32                     <!--<binding-address>0.0.0.0</binding-address>-->
33
34                     <!--Default binding-port 179-->
35                     <binding-port>1790</binding-port>
36
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>
45                 </module>
46
47                 <!--<module>
48                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">prefix:advertise-n-paths</type>
49                     <name>n-paths</name>
50                     <n-best-paths>2</n-best-paths>
51                 </module>-->
52                 <!--<module>
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>
55                 </module>-->
56                 <!--<module>
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>
59                     <path-address-family>
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>
63                     <path-selection-mode>
64                         <type xmlns:ribimpl="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">ribimpl:path-selection-mode-factory</type>
65                         <name>n-paths</name>
66                     </path-selection-mode>
67                 </module>-->
68
69                 <!--
70                      A single BGP peer. Note this section is deactivated because a misconfigured peer
71                      tends to log rather nasty error messages.
72
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
78                      "rr-client").
79                 <module>
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>
86                     <rib>
87                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
88                         <name>example-bgp-rib</name>
89                     </rib>
90                     <peer-registry>
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>
93                     </peer-registry>
94                     <rpc-registry>
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>
97                     </rpc-registry>
98                     <advertized-table>
99                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
100                         <name>ipv4-unicast</name>
101                     </advertized-table>
102                     <advertized-table>
103                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
104                         <name>ipv6-unicast</name>
105                     </advertized-table>
106                     <advertized-table>
107                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
108                         <name>linkstate</name>
109                     </advertized-table>
110                     <advertized-table>
111                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
112                         <name>ipv4-flowspec</name>
113                     </advertized-table>
114                     <advertized-table>
115                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
116                         <name>ipv6-flowspec</name>
117                     </advertized-table>
118                     <advertized-table>
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>
121                     </advertized-table>
122                     <advertized-table>
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>
125                     </advertized-table>
126                     <advertized-table>
127                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
128                         <name>ipv4-l3vpn</name>
129                     </advertized-table>
130                     <advertized-table>
131                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
132                         <name>ipv6-l3vpn</name>
133                     </advertized-table>
134                     <advertized-table>
135                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
136                         <name>evpn</name>
137                     </advertized-table>
138                     <add-path>
139                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:add-path</type>
140                         <name>ipv4-unicast-both</name>
141                     </add-path>
142                     <add-path>
143                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:add-path</type>
144                         <name>ipv6-unicast-both</name>
145                     </add-path>
146                 </module>
147                 -->
148
149                 <module>
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> -->
157                     <local-table>
158                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
159                         <name>ipv4-unicast</name>
160                     </local-table>
161                     <local-table>
162                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
163                         <name>ipv6-unicast</name>
164                     </local-table>
165                     <local-table>
166                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
167                         <name>linkstate</name>
168                     </local-table>
169                     <local-table>
170                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
171                         <name>ipv4-flowspec</name>
172                     </local-table>
173                     <local-table>
174                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
175                         <name>ipv6-flowspec</name>
176                     </local-table>
177                     <local-table>
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>
180                     </local-table>
181                     <local-table>
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>
184                     </local-table>
185                     <local-table>
186                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
187                         <name>ipv4-l3vpn</name>
188                     </local-table>
189                     <local-table>
190                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
191                         <name>ipv6-l3vpn</name>
192                     </local-table>
193                     <local-table>
194                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
195                         <name>evpn</name>
196                     </local-table>
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>-->
201                     <extensions>
202                         <type xmlns:ribspi="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi">ribspi:extensions</type>
203                         <name>global-rib-extensions</name>
204                     </extensions>
205                     <bgp-dispatcher>
206                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
207                         <name>global-bgp-dispatcher</name>
208                     </bgp-dispatcher>
209                     <data-provider>
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>
212                     </data-provider>
213                     <dom-data-provider>
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>
216                     </dom-data-provider>
217                     <codec-tree-factory>
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>
225                 </module>
226                 <module>
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>
229                     <data-provider>
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>
232                     </data-provider>
233                     <local-rib>
234                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
235                         <name>example-bgp-rib</name>
236                     </local-rib>
237                     <topology-id>example-ipv4-topology</topology-id>
238                 </module>
239                 <module>
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>
242                     <data-provider>
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>
245                     </data-provider>
246                     <local-rib>
247                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
248                         <name>example-bgp-rib</name>
249                     </local-rib>
250                     <topology-id>example-ipv6-topology</topology-id>
251                 </module>
252                 <module>
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>
255                     <data-provider>
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>
258                     </data-provider>
259                     <local-rib>
260                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
261                         <name>example-bgp-rib</name>
262                     </local-rib>
263                     <topology-id>example-linkstate-topology</topology-id>
264                 </module>
265             </modules>
266
267             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
268                 <service>
269                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
270                     <instance>
271                         <name>example-ipv4-topology</name>
272                         <provider>/config/modules/module[name='bgp-reachability-ipv4']/instance[name='example-ipv4-topology']</provider>
273                     </instance>
274                 </service>
275                 <service>
276                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
277                     <instance>
278                         <name>example-bgp-rib</name>
279                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
280                     </instance>
281                 </service>
282                 <service>
283                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
284                     <instance>
285                         <name>example-bgp-rib</name>
286                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
287                     </instance>
288                 </service>
289                 <service>
290                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
291                     <instance>
292                         <name>example-ipv6-topology</name>
293                         <provider>/config/modules/module[name='bgp-reachability-ipv6']/instance[name='example-ipv6-topology']</provider>
294                     </instance>
295                 </service>
296                 <service>
297                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
298                     <instance>
299                         <name>example-linkstate-topology</name>
300                         <provider>/config/modules/module[name='bgp-linkstate-topology']/instance[name='example-linkstate-topology']</provider>
301                     </instance>
302                 </service>
303                 <!--<service>
304                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">prefix:path-selection-mode-factory</type>
305                     <instance>
306                         <name>n-paths</name>
307                         <provider>/config/modules/module[name='advertise-n-paths']/instance[name='n-paths']</provider>
308                     </instance>
309                 </service>-->
310                 <!--<service>
311                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">prefix:path-selection-mode-factory</type>
312                     <instance>
313                         <name>all-paths</name>
314                         <provider>/config/modules/module[name='advertise-all-paths']/instance[name='all-paths']</provider>
315                     </instance>
316                 </service>-->
317                 <!--<service>
318                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-path-selection-mode</type>
319                     <instance>
320                         <name>ipv4-unicast-path-selection-mode</name>
321                         <provider>/modules/module[type='bgp-psm-impl'][name='ipv4-unicast-path-selection-mode']</provider>
322                     </instance>
323                 </service>-->
324             </services>
325         </data>
326     </configuration>
327 </snapshot>