585b4a000ab864161d8e30f3f8efb6840b3446fc
[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                 <!--
71                      A single BGP peer. Note this section is deactivated because a misconfigured peer
72                      tends to log rather nasty error messages.
73
74                      For TCP-MD5 support, make sure the dispatcher associated with the rib has
75                      "md5-channel-factory" attribute set and then add a "password" attribute here.
76                      Note that the peer has to have the same password configured, otherwise the
77                      connection will not be established.
78                      If peer role is not present, default value "ibgp" will be used (allowed values are also "ebgp" and
79                      "rr-client").
80                 <module>
81                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type>
82                     <name>example-bgp-peer</name>
83                     <host>192.0.2.1</host>
84                     <holdtimer>180</holdtimer>
85                     <retrytimer>10</retrytimer>
86                     <peer-role>ibgp</peer-role>
87                     <rib>
88                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
89                         <name>example-bgp-rib</name>
90                     </rib>
91                     <peer-registry>
92                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
93                         <name>global-bgp-peer-registry</name>
94                     </peer-registry>
95                     <rpc-registry>
96                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-rpc-registry</type>
97                         <name>binding-rpc-broker</name>
98                     </rpc-registry>
99                     <advertized-table>
100                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
101                         <name>ipv4-unicast</name>
102                     </advertized-table>
103                     <advertized-table>
104                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
105                         <name>ipv6-unicast</name>
106                     </advertized-table>
107                     <advertized-table>
108                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
109                         <name>linkstate</name>
110                     </advertized-table>
111                     <advertized-table>
112                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
113                         <name>ipv4-flowspec</name>
114                     </advertized-table>
115                     <advertized-table>
116                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
117                         <name>ipv6-flowspec</name>
118                     </advertized-table>
119                     <advertized-table>
120                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
121                         <name>labeled-unicast</name>
122                     </advertized-table>
123                     <advertized-table>
124                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
125                         <name>ipv4-l3vpn</name>
126                     </advertized-table>
127                     <add-path>
128                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:add-path</type>
129                         <name>ipv4-unicast-both</name>
130                     </add-path>
131                 </module>
132                 -->
133
134                 <module>
135                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-impl</type>
136                     <name>example-bgp-rib</name>
137                     <rib-id>example-bgp-rib</rib-id>
138                     <local-as>64496</local-as>
139                     <bgp-rib-id>192.0.2.2</bgp-rib-id>
140                     <!-- if cluster-id is not present, it's value is the same as bgp-id -->
141                     <!-- <cluster-id>192.0.2.3</cluster-id> -->
142                     <local-table>
143                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
144                         <name>ipv4-unicast</name>
145                     </local-table>
146                     <local-table>
147                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
148                         <name>ipv6-unicast</name>
149                     </local-table>
150                     <local-table>
151                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
152                         <name>linkstate</name>
153                     </local-table>
154                     <local-table>
155                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
156                         <name>ipv4-flowspec</name>
157                     </local-table>
158                     <local-table>
159                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
160                         <name>ipv6-flowspec</name>
161                     </local-table>
162                     <local-table>
163                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
164                         <name>labeled-unicast</name>
165                     </local-table>
166                     <local-table>
167                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
168                         <name>ipv4-l3vpn</name>
169                     </local-table>
170                     <!--<rib-path-selection-mode>
171                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-path-selection-mode</type>
172                         <name>ipv4-unicast-path-selection-mode</name>
173                     </rib-path-selection-mode>-->
174                     <extensions>
175                         <type xmlns:ribspi="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi">ribspi:extensions</type>
176                         <name>global-rib-extensions</name>
177                     </extensions>
178                     <bgp-dispatcher>
179                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
180                         <name>global-bgp-dispatcher</name>
181                     </bgp-dispatcher>
182                     <data-provider>
183                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
184                         <name>pingpong-binding-data-broker</name>
185                     </data-provider>
186                     <dom-data-provider>
187                         <type xmlns:sal="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">sal:dom-async-data-broker</type>
188                         <name>pingpong-broker</name>
189                     </dom-data-provider>
190                     <codec-tree-factory>
191                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-codec-tree-factory</type>
192                         <name>runtime-mapping-singleton</name>
193                     </codec-tree-factory>
194                     <openconfig-provider>
195                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp-openconfig-spi">prefix:bgp-openconfig-provider</type>
196                         <name>openconfig-bgp</name>
197                     </openconfig-provider>
198                 </module>
199                 <module>
200                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv4">prefix:bgp-reachability-ipv4</type>
201                     <name>example-ipv4-topology</name>
202                     <data-provider>
203                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
204                         <name>pingpong-binding-data-broker</name>
205                     </data-provider>
206                     <local-rib>
207                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
208                         <name>example-bgp-rib</name>
209                     </local-rib>
210                     <topology-id>example-ipv4-topology</topology-id>
211                 </module>
212                 <module>
213                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv6">prefix:bgp-reachability-ipv6</type>
214                     <name>example-ipv6-topology</name>
215                     <data-provider>
216                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
217                         <name>pingpong-binding-data-broker</name>
218                     </data-provider>
219                     <local-rib>
220                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
221                         <name>example-bgp-rib</name>
222                     </local-rib>
223                     <topology-id>example-ipv6-topology</topology-id>
224                 </module>
225                 <module>
226                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:topology:provider">prefix:bgp-linkstate-topology</type>
227                     <name>example-linkstate-topology</name>
228                     <data-provider>
229                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
230                         <name>pingpong-binding-data-broker</name>
231                     </data-provider>
232                     <local-rib>
233                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
234                         <name>example-bgp-rib</name>
235                     </local-rib>
236                     <topology-id>example-linkstate-topology</topology-id>
237                 </module>
238             </modules>
239
240             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
241                 <service>
242                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
243                     <instance>
244                         <name>example-ipv4-topology</name>
245                         <provider>/config/modules/module[name='bgp-reachability-ipv4']/instance[name='example-ipv4-topology']</provider>
246                     </instance>
247                 </service>
248                 <service>
249                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
250                     <instance>
251                         <name>example-bgp-rib</name>
252                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
253                     </instance>
254                 </service>
255                 <service>
256                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
257                     <instance>
258                         <name>example-bgp-rib</name>
259                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
260                     </instance>
261                 </service>
262                 <service>
263                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
264                     <instance>
265                         <name>example-ipv6-topology</name>
266                         <provider>/config/modules/module[name='bgp-reachability-ipv6']/instance[name='example-ipv6-topology']</provider>
267                     </instance>
268                 </service>
269                 <service>
270                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
271                     <instance>
272                         <name>example-linkstate-topology</name>
273                         <provider>/config/modules/module[name='bgp-linkstate-topology']/instance[name='example-linkstate-topology']</provider>
274                     </instance>
275                 </service>
276                 <!--<service>
277                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">prefix:path-selection-mode-factory</type>
278                     <instance>
279                         <name>n-paths</name>
280                         <provider>/config/modules/module[name='advertise-n-paths']/instance[name='n-paths']</provider>
281                     </instance>
282                 </service>-->
283                 <!--<service>
284                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:path:selection:mode">prefix:path-selection-mode-factory</type>
285                     <instance>
286                         <name>all-paths</name>
287                         <provider>/config/modules/module[name='advertise-all-paths']/instance[name='all-paths']</provider>
288                     </instance>
289                 </service>-->
290                 <!--<service>
291                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-path-selection-mode</type>
292                     <instance>
293                         <name>ipv4-unicast-path-selection-mode</name>
294                         <provider>/modules/module[type='bgp-psm-impl'][name='ipv4-unicast-path-selection-mode']</provider>
295                     </instance>
296                 </service>-->
297             </services>
298         </data>
299     </configuration>
300 </snapshot>