Merge "Revert "Fixed omission of new path setup type for segment routing""
[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     </required-capabilities>
24     <configuration>
25
26         <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
27             <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
28                 <module>
29                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:timed-reconnect-strategy-factory</type>
30                     <name>example-reconnect-strategy-factory</name>
31                     <min-sleep>1000</min-sleep>
32                     <max-sleep>180000</max-sleep>
33                     <sleep-factor>2.00</sleep-factor>
34                     <connect-time>5000</connect-time>
35                     <timed-reconnect-executor>
36                         <type xmlns:netty="urn:opendaylight:params:xml:ns:yang:controller:netty">netty:netty-event-executor</type>
37                         <name>global-event-executor</name>
38                     </timed-reconnect-executor>
39                 </module>
40
41                 <module>
42                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-acceptor</type>
43                     <name>bgp-peer-server</name>
44
45                     <!--Default parameters-->
46                     <!--<binding-address>0.0.0.0</binding-address>-->
47
48                     <!--Default binding-port 179-->
49                     <binding-port>1790</binding-port>
50
51                     <accepting-bgp-dispatcher>
52                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
53                         <name>global-bgp-dispatcher</name>
54                     </accepting-bgp-dispatcher>
55                     <accepting-peer-registry>
56                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
57                         <name>global-bgp-peer-registry</name>
58                     </accepting-peer-registry>
59
60                 </module>
61
62                 <!--
63                      A single BGP peer. Note this section is deactivated because a misconfigured peer
64                      tends to log rather nasty error messages.
65
66                      For TCP-MD5 support, make sure the dispatcher associated with the rib has
67                      "md5-channel-factory" attribute set and then add a "password" attribute here.
68                      Note that the peer has to have the same password configured, otherwise the
69                      connection will not be established.
70                 <module>
71                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type>
72                     <name>example-bgp-peer</name>
73                     <host>192.0.2.1</host>
74                     <holdtimer>180</holdtimer>
75                     <rib>
76                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
77                         <name>example-bgp-rib</name>
78                     </rib>
79                     <peer-registry>
80                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
81                         <name>global-bgp-peer-registry</name>
82                     </peer-registry>
83                     <advertized-table>
84                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
85                         <name>ipv4-unicast</name>
86                     </advertized-table>
87                     <advertized-table>
88                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
89                         <name>ipv6-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>linkstate</name>
94                     </advertized-table>
95                 </module>
96                 -->
97
98                 <module>
99                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-impl</type>
100                     <name>example-bgp-rib</name>
101                     <rib-id>example-bgp-rib</rib-id>
102                     <local-as>64496</local-as>
103                     <bgp-rib-id>192.0.2.2</bgp-rib-id>
104                     <!-- if cluster-id is not present, it's value is the same as bgp-id -->
105                     <!-- <cluster-id>192.0.2.3</cluster-id> -->
106                     <local-table>
107                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
108                         <name>ipv4-unicast</name>
109                     </local-table>
110                     <local-table>
111                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
112                         <name>ipv6-unicast</name>
113                     </local-table>
114                     <local-table>
115                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
116                         <name>linkstate</name>
117                     </local-table>
118                     <extensions>
119                         <type xmlns:ribspi="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi">ribspi:extensions</type>
120                         <name>global-rib-extensions</name>
121                     </extensions>
122                     <bgp-dispatcher>
123                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-dispatcher</type>
124                         <name>global-bgp-dispatcher</name>
125                     </bgp-dispatcher>
126                     <data-provider>
127                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
128                         <name>pingpong-binding-data-broker</name>
129                     </data-provider>
130                     <dom-data-provider>
131                         <type xmlns:sal="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">sal:dom-async-data-broker</type>
132                         <name>pingpong-broker</name>
133                     </dom-data-provider>
134                     <codec-tree-factory>
135                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-codec-tree-factory</type>
136                         <name>runtime-mapping-singleton</name>
137                     </codec-tree-factory>
138                     <session-reconnect-strategy>
139                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:reconnect-strategy-factory</type>
140                         <name>example-reconnect-strategy-factory</name>
141                     </session-reconnect-strategy>
142                     <tcp-reconnect-strategy>
143                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:reconnect-strategy-factory</type>
144                         <name>example-reconnect-strategy-factory</name>
145                     </tcp-reconnect-strategy>
146                 </module>
147                 <module>
148                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv4">prefix:bgp-reachability-ipv4</type>
149                     <name>example-ipv4-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>pingpong-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-ipv4-topology</topology-id>
159                 </module>
160                 <module>
161                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:reachability:ipv6">prefix:bgp-reachability-ipv6</type>
162                     <name>example-ipv6-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>pingpong-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-ipv6-topology</topology-id>
172                 </module>
173                 <module>
174                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:topology:provider">prefix:bgp-linkstate-topology</type>
175                     <name>example-linkstate-topology</name>
176                     <data-provider>
177                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
178                         <name>pingpong-binding-data-broker</name>
179                     </data-provider>
180                     <local-rib>
181                         <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
182                         <name>example-bgp-rib</name>
183                     </local-rib>
184                     <topology-id>example-linkstate-topology</topology-id>
185                 </module>
186             </modules>
187
188             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
189                 <service>
190                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:protocol:framework">prefix:reconnect-strategy-factory</type>
191                     <instance>
192                         <name>example-reconnect-strategy-factory</name>
193                         <provider>/config/modules/module[name='timed-reconnect-strategy-factory']/instance[name='example-reconnect-strategy-factory']</provider>
194                     </instance>
195                 </service>
196                 <service>
197                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
198                     <instance>
199                         <name>example-ipv4-topology</name>
200                         <provider>/config/modules/module[name='bgp-reachability-ipv4']/instance[name='example-ipv4-topology']</provider>
201                     </instance>
202                 </service>
203                 <service>
204                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg">prefix:rib</type>
205                     <instance>
206                         <name>example-bgp-rib</name>
207                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
208                     </instance>
209                 </service>
210                 <service>
211                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
212                     <instance>
213                         <name>example-bgp-rib</name>
214                         <provider>/config/modules/module[name='rib-impl']/instance[name='example-bgp-rib']</provider>
215                     </instance>
216                 </service>
217                 <service>
218                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
219                     <instance>
220                         <name>example-ipv6-topology</name>
221                         <provider>/config/modules/module[name='bgp-reachability-ipv6']/instance[name='example-ipv6-topology']</provider>
222                     </instance>
223                 </service>
224                 <service>
225                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:topology">prefix:topology-reference</type>
226                     <instance>
227                         <name>example-linkstate-topology</name>
228                         <provider>/config/modules/module[name='bgp-linkstate-topology']/instance[name='example-linkstate-topology']</provider>
229                     </instance>
230                 </service>
231             </services>
232         </data>
233
234     </configuration>
235 </snapshot>