Update config files in bgpcep, remove duplicate config nodes
[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:netty?module=netty&amp;revision=2013-11-19</capability>
20         <capability>urn:opendaylight:params:xml:ns:yang:controller:protocol:framework?module=protocol-framework&amp;revision=2014-03-13</capability>
21         <capability>urn:opendaylight:params:xml:ns:yang:controller:topology?module=odl-topology-api-cfg&amp;revision=2013-11-15</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:protocol:framework">prefix:timed-reconnect-strategy-factory</type>
29                     <name>example-reconnect-strategy-factory</name>
30                     <min-sleep>1000</min-sleep>
31                     <max-sleep>180000</max-sleep>
32                     <sleep-factor>2.00</sleep-factor>
33                     <connect-time>5000</connect-time>
34                     <timed-reconnect-executor>
35                         <type xmlns:netty="urn:opendaylight:params:xml:ns:yang:controller:netty">netty:netty-event-executor</type>
36                         <name>global-event-executor</name>
37                     </timed-reconnect-executor>
38                 </module>
39
40                 <module>
41                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-acceptor</type>
42                     <name>bgp-peer-server</name>
43
44                     <!--Default parameters-->
45                     <!--<binding-address>0.0.0.0</binding-address>-->
46                     <!--<binding-port>179</binding-port>-->
47
48                     <accepting-bgp-dispatcher>
49                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
50                         <name>global-bgp-dispatcher</name>
51                     </accepting-bgp-dispatcher>
52                     <accepting-peer-registry>
53                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
54                         <name>global-bgp-peer-registry</name>
55                     </accepting-peer-registry>
56
57                 </module>
58
59                 <!--
60                      A single BGP peer. Note this section is deactivated because a misconfigured peer
61                      tends to log rather nasty error messages.
62
63                      For TCP-MD5 support, make sure the dispatcher associated with the rib has
64                      "md5-channel-factory" attribute set and then add a "password" attribute here.
65                      Note that the peer has to have the same password configured, otherwise the
66                      connection will not be established.
67                 <module>
68                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type>
69                     <name>example-bgp-peer</name>
70                     <host>192.0.2.1</host>
71                     <holdtimer>180</holdtimer>
72                     <rib>
73                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
74                         <name>example-bgp-rib</name>
75                     </rib>
76                     <peer-registry>
77                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
78                         <name>global-bgp-peer-registry</name>
79                     </peer-registry>
80                     <advertized-table>
81                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
82                         <name>ipv4-unicast</name>
83                     </advertized-table>
84                     <advertized-table>
85                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
86                         <name>ipv6-unicast</name>
87                     </advertized-table>
88                     <advertized-table>
89                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
90                         <name>linkstate</name>
91                     </advertized-table>
92                 </module>
93                 -->
94
95                 <module>
96                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-impl</type>
97                     <name>example-bgp-rib</name>
98                     <rib-id>example-bgp-rib</rib-id>
99                     <local-as>64496</local-as>
100                     <bgp-id>192.0.2.2</bgp-id>
101                     <local-table>
102                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
103                         <name>ipv4-unicast</name>
104                     </local-table>
105                     <local-table>
106                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
107                         <name>ipv6-unicast</name>
108                     </local-table>
109                     <local-table>
110                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
111                         <name>linkstate</name>
112                     </local-table>
113                     <extensions>
114                         <type xmlns:ribspi="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi">ribspi:extensions</type>
115                         <name>global-rib-extensions</name>
116                     </extensions>
117                     <bgp-dispatcher>
118                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
119                         <name>global-bgp-dispatcher</name>
120                     </bgp-dispatcher>
121                     <data-provider>
122                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
123                         <name>binding-data-broker</name>
124                     </data-provider>
125                     <session-reconnect-strategy>
126                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:reconnect-strategy-factory</type>
127                         <name>example-reconnect-strategy-factory</name>
128                     </session-reconnect-strategy>
129                     <tcp-reconnect-strategy>
130                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:reconnect-strategy-factory</type>
131                         <name>example-reconnect-strategy-factory</name>
132                     </tcp-reconnect-strategy>
133                 </module>
134                 <module>
135                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv4">prefix:bgp-reachability-ipv4</type>
136                     <name>example-ipv4-topology</name>
137                     <data-provider>
138                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
139                         <name>binding-data-broker</name>
140                     </data-provider>
141                     <local-rib>
142                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
143                         <name>example-bgp-rib</name>
144                     </local-rib>
145                     <topology-id>example-ipv4-topology</topology-id>
146                 </module>
147                 <module>
148                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv6">prefix:bgp-reachability-ipv6</type>
149                     <name>example-ipv6-topology</name>
150                     <data-provider>
151                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
152                         <name>binding-data-broker</name>
153                     </data-provider>
154                     <local-rib>
155                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
156                         <name>example-bgp-rib</name>
157                     </local-rib>
158                     <topology-id>example-ipv6-topology</topology-id>
159                 </module>
160                 <module>
161                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:topology:provider">prefix:bgp-linkstate-topology</type>
162                     <name>example-linkstate-topology</name>
163                     <data-provider>
164                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
165                         <name>binding-data-broker</name>
166                     </data-provider>
167                     <local-rib>
168                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
169                         <name>example-bgp-rib</name>
170                     </local-rib>
171                     <topology-id>example-linkstate-topology</topology-id>
172                 </module>
173             </modules>
174
175             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
176                 <service>
177                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:reconnect-strategy-factory</type>
178                     <instance>
179                         <name>example-reconnect-strategy-factory</name>
180                         <provider>/config/modules/module[name='timed-reconnect-strategy-factory']/instance[name='example-reconnect-strategy-factory']</provider>
181                     </instance>
182                 </service>
183                 <service>
184                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
185                     <instance>
186                         <name>example-ipv4-topology</name>
187                         <provider>/config/modules/module[name='bgp-reachability-ipv4']/instance[name='example-ipv4-topology']</provider>
188                     </instance>
189                 </service>
190                 <service>
191                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
192                     <instance>
193                         <name>example-bgp-rib</name>
194                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
195                     </instance>
196                 </service>
197                 <service>
198                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
199                     <instance>
200                         <name>example-bgp-rib</name>
201                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
202                     </instance>
203                 </service>
204                 <service>
205                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
206                     <instance>
207                         <name>example-ipv6-topology</name>
208                         <provider>/config/modules/module[name='bgp-reachability-ipv6']/instance[name='example-ipv6-topology']</provider>
209                     </instance>
210                 </service>
211                 <service>
212                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
213                     <instance>
214                         <name>example-linkstate-topology</name>
215                         <provider>/config/modules/module[name='bgp-linkstate-topology']/instance[name='example-linkstate-topology']</provider>
216                     </instance>
217                 </service>
218             </services>
219         </data>
220
221     </configuration>
222 </snapshot>