Bug 4781 - BGP at work is not ready for application of 43-bgp-openconfig.xml
[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=2013-04-09</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:netty?module=netty&amp;revision=2013-11-19</capability>
21         <capability>urn:opendaylight:params:xml:ns:yang:controller:protocol:framework?module=protocol-framework&amp;revision=2014-03-13</capability>
22         <capability>urn:opendaylight:params:xml:ns:yang:controller:topology?module=odl-topology-api-cfg&amp;revision=2013-11-15</capability>
23         <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp-openconfig-spi?module=odl-bgp-openconfig-spi-cfg&amp;revision=2015-09-25</capability>
24     </required-capabilities>
25     <configuration>
26
27         <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
28             <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
29                 <module>
30                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:timed-reconnect-strategy-factory</type>
31                     <name>example-reconnect-strategy-factory</name>
32                     <min-sleep>1000</min-sleep>
33                     <max-sleep>180000</max-sleep>
34                     <sleep-factor>2.00</sleep-factor>
35                     <connect-time>5000</connect-time>
36                     <timed-reconnect-executor>
37                         <type xmlns:netty="urn:opendaylight:params:xml:ns:yang:controller:netty">netty:netty-event-executor</type>
38                         <name>global-event-executor</name>
39                     </timed-reconnect-executor>
40                 </module>
41
42                 <module>
43                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-acceptor</type>
44                     <name>bgp-peer-server</name>
45
46                     <!--Default parameters-->
47                     <!--<binding-address>0.0.0.0</binding-address>-->
48
49                     <!--Default binding-port 179-->
50                     <binding-port>1790</binding-port>
51
52                     <accepting-bgp-dispatcher>
53                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
54                         <name>global-bgp-dispatcher</name>
55                     </accepting-bgp-dispatcher>
56                     <accepting-peer-registry>
57                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
58                         <name>global-bgp-peer-registry</name>
59                     </accepting-peer-registry>
60
61                 </module>
62
63                 <!--
64                      A single BGP peer. Note this section is deactivated because a misconfigured peer
65                      tends to log rather nasty error messages.
66
67                      For TCP-MD5 support, make sure the dispatcher associated with the rib has
68                      "md5-channel-factory" attribute set and then add a "password" attribute here.
69                      Note that the peer has to have the same password configured, otherwise the
70                      connection will not be established.
71                      If peer role is not present, default value "ibgp" will be used (allowed values are also "ebgp" and
72                      "rr-client").
73                 <module>
74                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type>
75                     <name>example-bgp-peer</name>
76                     <host>192.0.2.1</host>
77                     <holdtimer>180</holdtimer>
78                     <peer-role>ibgp</peer-role>
79                     <rib>
80                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
81                         <name>example-bgp-rib</name>
82                     </rib>
83                     <peer-registry>
84                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
85                         <name>global-bgp-peer-registry</name>
86                     </peer-registry>
87                     <advertized-table>
88                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
89                         <name>ipv4-unicast</name>
90                     </advertized-table>
91                     <advertized-table>
92                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
93                         <name>ipv6-unicast</name>
94                     </advertized-table>
95                     <advertized-table>
96                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
97                         <name>linkstate</name>
98                     </advertized-table>
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-flowspec</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-flowspec</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>labeled-unicast</name>
110                     </advertized-table>
111                 </module>
112                 -->
113
114                 <module>
115                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-impl</type>
116                     <name>example-bgp-rib</name>
117                     <rib-id>example-bgp-rib</rib-id>
118                     <local-as>64496</local-as>
119                     <bgp-rib-id>192.0.2.2</bgp-rib-id>
120                     <!-- if cluster-id is not present, it's value is the same as bgp-id -->
121                     <!-- <cluster-id>192.0.2.3</cluster-id> -->
122                     <local-table>
123                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
124                         <name>ipv4-unicast</name>
125                     </local-table>
126                     <local-table>
127                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
128                         <name>ipv6-unicast</name>
129                     </local-table>
130                     <local-table>
131                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
132                         <name>linkstate</name>
133                     </local-table>
134                     <local-table>
135                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
136                         <name>ipv4-flowspec</name>
137                     </local-table>
138                     <local-table>
139                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
140                         <name>ipv6-flowspec</name>
141                     </local-table>
142                     <local-table>
143                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
144                         <name>labeled-unicast</name>
145                     </local-table>
146                     <extensions>
147                         <type xmlns:ribspi="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi">ribspi:extensions</type>
148                         <name>global-rib-extensions</name>
149                     </extensions>
150                     <bgp-dispatcher>
151                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
152                         <name>global-bgp-dispatcher</name>
153                     </bgp-dispatcher>
154                     <data-provider>
155                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
156                         <name>pingpong-binding-data-broker</name>
157                     </data-provider>
158                     <dom-data-provider>
159                         <type xmlns:sal="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">sal:dom-async-data-broker</type>
160                         <name>inmemory-data-broker</name>
161                     </dom-data-provider>
162                     <codec-tree-factory>
163                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-codec-tree-factory</type>
164                         <name>runtime-mapping-singleton</name>
165                     </codec-tree-factory>
166                     <session-reconnect-strategy>
167                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:reconnect-strategy-factory</type>
168                         <name>example-reconnect-strategy-factory</name>
169                     </session-reconnect-strategy>
170                     <tcp-reconnect-strategy>
171                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:reconnect-strategy-factory</type>
172                         <name>example-reconnect-strategy-factory</name>
173                     </tcp-reconnect-strategy>
174                     <openconfig-provider>
175                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp-openconfig-spi">prefix:bgp-openconfig-provider</type>
176                         <name>openconfig-bgp</name>
177                     </openconfig-provider>
178                 </module>
179                 <module>
180                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv4">prefix:bgp-reachability-ipv4</type>
181                     <name>example-ipv4-topology</name>
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                     <local-rib>
187                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
188                         <name>example-bgp-rib</name>
189                     </local-rib>
190                     <topology-id>example-ipv4-topology</topology-id>
191                 </module>
192                 <module>
193                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv6">prefix:bgp-reachability-ipv6</type>
194                     <name>example-ipv6-topology</name>
195                     <data-provider>
196                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
197                         <name>pingpong-binding-data-broker</name>
198                     </data-provider>
199                     <local-rib>
200                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
201                         <name>example-bgp-rib</name>
202                     </local-rib>
203                     <topology-id>example-ipv6-topology</topology-id>
204                 </module>
205                 <module>
206                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:topology:provider">prefix:bgp-linkstate-topology</type>
207                     <name>example-linkstate-topology</name>
208                     <data-provider>
209                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
210                         <name>pingpong-binding-data-broker</name>
211                     </data-provider>
212                     <local-rib>
213                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
214                         <name>example-bgp-rib</name>
215                     </local-rib>
216                     <topology-id>example-linkstate-topology</topology-id>
217                 </module>
218             </modules>
219
220             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
221                 <service>
222                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:reconnect-strategy-factory</type>
223                     <instance>
224                         <name>example-reconnect-strategy-factory</name>
225                         <provider>/config/modules/module[name='timed-reconnect-strategy-factory']/instance[name='example-reconnect-strategy-factory']</provider>
226                     </instance>
227                 </service>
228                 <service>
229                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
230                     <instance>
231                         <name>example-ipv4-topology</name>
232                         <provider>/config/modules/module[name='bgp-reachability-ipv4']/instance[name='example-ipv4-topology']</provider>
233                     </instance>
234                 </service>
235                 <service>
236                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
237                     <instance>
238                         <name>example-bgp-rib</name>
239                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
240                     </instance>
241                 </service>
242                 <service>
243                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
244                     <instance>
245                         <name>example-bgp-rib</name>
246                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
247                     </instance>
248                 </service>
249                 <service>
250                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
251                     <instance>
252                         <name>example-ipv6-topology</name>
253                         <provider>/config/modules/module[name='bgp-reachability-ipv6']/instance[name='example-ipv6-topology']</provider>
254                     </instance>
255                 </service>
256                 <service>
257                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
258                     <instance>
259                         <name>example-linkstate-topology</name>
260                         <provider>/config/modules/module[name='bgp-linkstate-topology']/instance[name='example-linkstate-topology']</provider>
261                     </instance>
262                 </service>
263             </services>
264         </data>
265     </configuration>
266 </snapshot>