1 .. _bgp-user-guide-protocol-configuration-loader:
3 BGP Protocol Configuration Loader
4 =================================
6 BGP Protocol Configuration Loader allows the user to define the static initial
7 configuration for a BGP protocol instance.
8 This service will detect the creation of new configuration files following the
9 pattern ``protocols-*.xml`` under the path "etc/opendaylight/bgpcep".
10 Once the file is processed, the defined configuration will be available from
11 the configuration Data Store.
13 .. note:: If the BGP instance is already present, no update or configuration will be applied.
15 **PATH:** ``etc/opendaylight/bgpcep/protocols-config.xml``
19 <protocols xmlns="http://openconfig.net/yang/network-instance">
21 <name>example-bgp-rib</name>
22 <identifier xmlns:x="http://openconfig.net/yang/policy-types">x:BGP</identifier>
23 <bgp xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
26 <router-id>192.0.2.2</router-id>
28 <!-- if cluster-id is not present, it's value is the same as bgp-id -->
29 <!-- <route-reflector-cluster-id>192.0.2.3</route-reflector-cluster-id> -->
30 <!-- <read-only-limit>120</read-only-limit>-->
34 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-UNICAST</afi-safi-name>
36 <receive>true</receive>
37 <send-max>2</send-max>-->
40 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-UNICAST</afi-safi-name>
43 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-LABELLED-UNICAST</afi-safi-name>
46 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-LABELLED-UNICAST</afi-safi-name>
49 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV4-UNICAST</afi-safi-name>
52 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV6-UNICAST</afi-safi-name>
55 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L2VPN-EVPN</afi-safi-name>
58 <afi-safi-name>LINKSTATE</afi-safi-name>
61 <afi-safi-name>IPV4-FLOW</afi-safi-name>
64 <afi-safi-name>IPV6-FLOW</afi-safi-name>
67 <afi-safi-name>IPV4-L3VPN-FLOW</afi-safi-name>
70 <afi-safi-name>IPV6-L3VPN-FLOW</afi-safi-name>
74 <neighbors xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
75 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
76 <neighbor-address>192.0.2.1</neighbor-address>
78 <peer-type>INTERNAL</peer-type>
79 <peer-as>64496</peer-as>
83 <remote-port>179</remote-port>
84 <passive-mode>true</passive-mode>
89 <hold-time>180</hold-time>
90 <connect-retry>10</connect-retry>
95 <route-reflector-client>false</route-reflector-client>
100 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-UNICAST</afi-safi-name>
101 <!--Advertise N Paths
102 <receive>true</receive>
103 <send-max>0</send-max>-->
106 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-UNICAST</afi-safi-name>
109 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-LABELLED-UNICAST</afi-safi-name>
112 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-LABELLED-UNICAST</afi-safi-name>
115 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV4-UNICAST</afi-safi-name>
118 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV6-UNICAST</afi-safi-name>
121 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L2VPN-EVPN</afi-safi-name>
124 <afi-safi-name>LINKSTATE</afi-safi-name>
127 <afi-safi-name>IPV4-FLOW</afi-safi-name>
130 <afi-safi-name>IPV6-FLOW</afi-safi-name>
133 <afi-safi-name>IPV4-L3VPN-FLOW</afi-safi-name>
136 <afi-safi-name>IPV6-L3VPN-FLOW</afi-safi-name>
140 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
141 <neighbor-address>192.0.2.6</neighbor-address>
143 <peer-group>application-peers</peer-group>
151 BGP Configuration Example
152 '''''''''''''''''''''''''
154 BGP provides a feature providing a BGP Protocol and Network Topology configuration file example.
155 Once feature is installed defined configuration will be loaded and setup.
157 .. code-block:: console
159 feature:install odl-bgpcep-bgp-config-example