1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
4 Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
10 <protocols xmlns="http://openconfig.net/yang/network-instance">
12 <name>example-bgp-rib</name>
13 <identifier xmlns:x="http://openconfig.net/yang/policy-types">x:BGP</identifier>
14 <bgp xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
17 <router-id>192.0.2.2</router-id>
19 <!-- if cluster-id is not present, it's value is the same as bgp-id -->
20 <!-- <route-reflector-cluster-id>192.0.2.3</route-reflector-cluster-id> -->
24 <default-export-policy>REJECT-ROUTE</default-export-policy>
25 <default-import-policy>REJECT-ROUTE</default-import-policy>
26 <import-policy>default-odl-import-policy</import-policy>
27 <export-policy>default-odl-export-policy</export-policy>
32 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-UNICAST</afi-safi-name>
34 <receive>true</receive>
35 <send-max>2</send-max>-->
38 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-UNICAST</afi-safi-name>
41 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-LABELLED-UNICAST</afi-safi-name>
44 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-LABELLED-UNICAST</afi-safi-name>
47 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV4-UNICAST</afi-safi-name>
50 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV6-UNICAST</afi-safi-name>
53 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV4-MULTICAST</afi-safi-name>
56 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV6-MULTICAST</afi-safi-name>
59 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L2VPN-EVPN</afi-safi-name>
62 <afi-safi-name>LINKSTATE</afi-safi-name>
65 <afi-safi-name>IPV4-FLOW</afi-safi-name>
68 <afi-safi-name>IPV6-FLOW</afi-safi-name>
71 <afi-safi-name>IPV4-L3VPN-FLOW</afi-safi-name>
74 <afi-safi-name>IPV6-L3VPN-FLOW</afi-safi-name>
77 <afi-safi-name>IPV4-MCAST-VPN</afi-safi-name>
80 <afi-safi-name>IPV6-MCAST-VPN</afi-safi-name>
83 <afi-safi-name>ROUTE-TARGET-CONSTRAIN</afi-safi-name>
89 <neighbor-address>192.0.2.1</neighbor-address>
91 <peer-group>/bgp/neighbors/neighbor/bgp/peer-groups/peer-group[peer-group-name="internal-neighbor"]</peer-group>
95 <neighbor-address>192.0.2.5</neighbor-address>
97 <peer-group>/bgp/neighbors/neighbor/bgp/peer-groups/peer-group[peer-group-name="external-neighbor"]</peer-group>
98 <local-as>65001</local-as>
102 <neighbor-address>192.0.2.6</neighbor-address>
104 <peer-group>application-peers</peer-group>
110 <peer-group-name>internal-neighbor</peer-group-name>
112 <peer-type>INTERNAL</peer-type>
113 <peer-as>64496</peer-as>
117 <remote-port>179</remote-port>
118 <passive-mode>true</passive-mode>
123 <hold-time>180</hold-time>
124 <connect-retry>10</connect-retry>
129 <route-reflector-client>false</route-reflector-client>
134 <restart-time>60</restart-time>
139 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-UNICAST</afi-safi-name>
140 <!--Advertise N Paths
141 <receive>true</receive>
142 <send-max>0</send-max>-->
145 <enabled>true</enabled>
146 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
148 <long-lived-stale-time>180</long-lived-stale-time>
150 </ll-graceful-restart>
155 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-UNICAST</afi-safi-name>
158 <enabled>true</enabled>
159 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
161 <long-lived-stale-time>180</long-lived-stale-time>
163 </ll-graceful-restart>
168 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-LABELLED-UNICAST</afi-safi-name>
171 <enabled>true</enabled>
172 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
174 <long-lived-stale-time>180</long-lived-stale-time>
176 </ll-graceful-restart>
181 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-LABELLED-UNICAST</afi-safi-name>
184 <enabled>true</enabled>
185 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
187 <long-lived-stale-time>180</long-lived-stale-time>
189 </ll-graceful-restart>
194 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV4-UNICAST</afi-safi-name>
197 <enabled>true</enabled>
198 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
200 <long-lived-stale-time>180</long-lived-stale-time>
202 </ll-graceful-restart>
207 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV6-UNICAST</afi-safi-name>
210 <enabled>true</enabled>
211 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
213 <long-lived-stale-time>180</long-lived-stale-time>
215 </ll-graceful-restart>
220 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV4-MULTICAST</afi-safi-name>
223 <enabled>true</enabled>
224 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
226 <long-lived-stale-time>180</long-lived-stale-time>
228 </ll-graceful-restart>
233 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV6-MULTICAST</afi-safi-name>
236 <enabled>true</enabled>
237 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
239 <long-lived-stale-time>180</long-lived-stale-time>
241 </ll-graceful-restart>
246 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L2VPN-EVPN</afi-safi-name>
249 <enabled>true</enabled>
250 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
252 <long-lived-stale-time>180</long-lived-stale-time>
254 </ll-graceful-restart>
259 <afi-safi-name>LINKSTATE</afi-safi-name>
262 <enabled>true</enabled>
263 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
265 <long-lived-stale-time>180</long-lived-stale-time>
267 </ll-graceful-restart>
272 <afi-safi-name>IPV4-FLOW</afi-safi-name>
275 <enabled>true</enabled>
276 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
278 <long-lived-stale-time>180</long-lived-stale-time>
280 </ll-graceful-restart>
285 <afi-safi-name>IPV6-FLOW</afi-safi-name>
288 <enabled>true</enabled>
289 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
291 <long-lived-stale-time>180</long-lived-stale-time>
293 </ll-graceful-restart>
298 <afi-safi-name>IPV4-L3VPN-FLOW</afi-safi-name>
301 <enabled>true</enabled>
302 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
304 <long-lived-stale-time>180</long-lived-stale-time>
306 </ll-graceful-restart>
311 <afi-safi-name>IPV6-L3VPN-FLOW</afi-safi-name>
314 <enabled>true</enabled>
315 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
317 <long-lived-stale-time>180</long-lived-stale-time>
319 </ll-graceful-restart>
324 <afi-safi-name>IPV4-MCAST-VPN</afi-safi-name>
327 <enabled>true</enabled>
328 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
330 <long-lived-stale-time>180</long-lived-stale-time>
332 </ll-graceful-restart>
337 <afi-safi-name>IPV6-MCAST-VPN</afi-safi-name>
340 <enabled>true</enabled>
341 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
343 <long-lived-stale-time>180</long-lived-stale-time>
345 </ll-graceful-restart>
350 <afi-safi-name>ROUTE-TARGET-CONSTRAIN</afi-safi-name>
353 <enabled>true</enabled>
354 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
356 <long-lived-stale-time>180</long-lived-stale-time>
358 </ll-graceful-restart>
365 <treat-as-withdraw>true</treat-as-withdraw>
370 <peer-group-name>external-neighbor</peer-group-name>
372 <peer-type>EXTERNAL</peer-type>
373 <peer-as>65000</peer-as>
377 <remote-port>179</remote-port>
378 <passive-mode>true</passive-mode>
383 <restart-time>60</restart-time>
388 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-UNICAST</afi-safi-name>
391 <enabled>true</enabled>
392 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
394 <long-lived-stale-time>180</long-lived-stale-time>
396 </ll-graceful-restart>
401 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-UNICAST</afi-safi-name>
404 <enabled>true</enabled>
405 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
407 <long-lived-stale-time>180</long-lived-stale-time>
409 </ll-graceful-restart>
414 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-LABELLED-UNICAST</afi-safi-name>
417 <enabled>true</enabled>
418 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
420 <long-lived-stale-time>180</long-lived-stale-time>
422 </ll-graceful-restart>
427 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-LABELLED-UNICAST</afi-safi-name>
430 <enabled>true</enabled>
431 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
433 <long-lived-stale-time>180</long-lived-stale-time>
435 </ll-graceful-restart>
440 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV4-UNICAST</afi-safi-name>
443 <enabled>true</enabled>
444 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
446 <long-lived-stale-time>180</long-lived-stale-time>
448 </ll-graceful-restart>
453 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV6-UNICAST</afi-safi-name>
456 <enabled>true</enabled>
457 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
459 <long-lived-stale-time>180</long-lived-stale-time>
461 </ll-graceful-restart>
466 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV4-MULTICAST</afi-safi-name>
469 <enabled>true</enabled>
470 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
472 <long-lived-stale-time>180</long-lived-stale-time>
474 </ll-graceful-restart>
479 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV6-MULTICAST</afi-safi-name>
482 <enabled>true</enabled>
483 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
485 <long-lived-stale-time>180</long-lived-stale-time>
487 </ll-graceful-restart>
492 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L2VPN-EVPN</afi-safi-name>
495 <enabled>true</enabled>
496 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
498 <long-lived-stale-time>180</long-lived-stale-time>
500 </ll-graceful-restart>
505 <afi-safi-name>LINKSTATE</afi-safi-name>
508 <enabled>true</enabled>
509 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
511 <long-lived-stale-time>180</long-lived-stale-time>
513 </ll-graceful-restart>
518 <afi-safi-name>IPV4-FLOW</afi-safi-name>
521 <enabled>true</enabled>
522 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
524 <long-lived-stale-time>180</long-lived-stale-time>
526 </ll-graceful-restart>
531 <afi-safi-name>IPV6-FLOW</afi-safi-name>
534 <enabled>true</enabled>
535 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
537 <long-lived-stale-time>180</long-lived-stale-time>
539 </ll-graceful-restart>
544 <afi-safi-name>IPV4-L3VPN-FLOW</afi-safi-name>
547 <enabled>true</enabled>
548 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
550 <long-lived-stale-time>180</long-lived-stale-time>
552 </ll-graceful-restart>
557 <afi-safi-name>IPV6-L3VPN-FLOW</afi-safi-name>
560 <enabled>true</enabled>
561 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
563 <long-lived-stale-time>180</long-lived-stale-time>
565 </ll-graceful-restart>
570 <afi-safi-name>IPV4-MCAST-VPN</afi-safi-name>
573 <enabled>true</enabled>
574 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
576 <long-lived-stale-time>180</long-lived-stale-time>
578 </ll-graceful-restart>
583 <afi-safi-name>IPV6-MCAST-VPN</afi-safi-name>
586 <enabled>true</enabled>
587 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
589 <long-lived-stale-time>180</long-lived-stale-time>
591 </ll-graceful-restart>
596 <afi-safi-name>ROUTE-TARGET-CONSTRAIN</afi-safi-name>
599 <enabled>true</enabled>
600 <ll-graceful-restart xmlns="urn:opendaylight:params:xml:ns:yang:bgp:ll-graceful-restart">
602 <long-lived-stale-time>180</long-lived-stale-time>
604 </ll-graceful-restart>
611 <treat-as-withdraw>true</treat-as-withdraw>