1 .. _bgp-user-guide-bgp-peering:
5 To exchange routing information between two BGP systems (peers), it is required to configure a peering on both BGP speakers first.
6 This mean that each BGP speaker has a white list of neighbors, representing remote peers, with which the peering is allowed.
7 The TCP connection is established between two peers and they exchange messages to open and confirm the connection parameters followed by routes exchange.
9 Here is a sample basic neighbor configuration:
11 **URL:** ``/rests/data/openconfig-network-instance:network-instances/network-instance=global-bgp/openconfig-network-instance:protocols/protocol=openconfig-policy-types:BGP/bgp-example/bgp/neighbors``
19 **Content-Type:** ``application/xml``
25 :emphasize-lines: 2,5,6,11,12,17,19
27 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
28 <neighbor-address>192.0.2.1</neighbor-address>
31 <hold-time>90</hold-time>
32 <connect-retry>10</connect-retry>
37 <remote-port>179</remote-port>
38 <passive-mode>false</passive-mode>
39 <!--<local-address>192.0.2.5</local-address>-->
43 <peer-type>INTERNAL</peer-type>
50 @line 2: IP address of the remote BGP peer. Also serves as an unique identifier of a neighbor in a list of neighbors.
52 @line 5: Proposed number of seconds for value of the Hold Timer. Default value is **90**.
54 @line 6: Time interval in seconds between attempts to establish session with the peer. Effective in active mode only. Default value is **30**.
56 @line 11: Remote port number to which the local BGP is connecting. Effective in active mode only. Default value **179**.
58 @line 12: Wait for peers to issue requests to open a BGP session, rather than initiating sessions from the local router. Default value is **false**.
60 @line 13: Optional Local IP (either IPv4 or IPv6) address used to establish connections to the remote peer. Effective in active mode only.
62 @line 17: Explicitly designate the peer as internal or external. Default value is **INTERNAL**.
64 @line 19: Enable families.
68 **Content-Type:** ``application/json``
74 :emphasize-lines: 4,7,8,13,14,18,20
79 "neighbor-address": "192.0.2.1",
89 "passive-mode": "false"
93 "peer-type": "INTERNAL"
100 @line 4: IP address of the remote BGP peer. Also serves as an unique identifier of a neighbor in a list of neighbors.
102 @line 7: Proposed number of seconds for value of the Hold Timer. Default value is **90**.
104 @line 8: Time interval in seconds between attempts to establish session with the peer. Effective in active mode only. Default value is **30**.
106 @line 13: Remote port number to which the local BGP is connecting. Effective in active mode only. Default value **179**.
108 @line 14: Wait for peers to issue requests to open a BGP session, rather than initiating sessions from the local router. Default value is **false**.
110 @line 18: Explicitly designate the peer as internal or external. Default value is **INTERNAL**.
112 @line 20: Enable families.
116 Once the remote peer is connected and it advertised routes to local BGP system, routes are stored in peer's RIBs.
117 The RIBs can be checked via REST:
119 **URL:** ``/rests/data/bgp-rib:bgp-rib/rib=bgp-example/peer=bgp%3A%2F%2F192.0.2.1?content=nonconfig``
131 :emphasize-lines: 8,13,35,40,62,66
133 <peer xmlns="urn:opendaylight:params:xml:ns:yang:bgp-rib">
134 <peer-id>bgp://192.0.2.1</peer-id>
136 <afi xmlns:x="urn:opendaylight:params:xml:ns:yang:bgp-types">x:ipv4-address-family</afi>
137 <safi xmlns:x="urn:opendaylight:params:xml:ns:yang:bgp-types">x:unicast-subsequent-address-family</safi>
139 <peer-role>ibgp</peer-role>
142 <afi xmlns:x="urn:opendaylight:params:xml:ns:yang:bgp-types">x:ipv4-address-family</afi>
143 <safi xmlns:x="urn:opendaylight:params:xml:ns:yang:bgp-types">x:unicast-subsequent-address-family</safi>
144 <ipv4-routes xmlns="urn:opendaylight:params:xml:ns:yang:bgp-inet">
147 <prefix>10.0.0.10/32</prefix>
157 <global>10.10.1.1</global>
163 <uptodate>true</uptodate>
169 <afi xmlns:x="urn:opendaylight:params:xml:ns:yang:bgp-types">x:ipv4-address-family</afi>
170 <safi xmlns:x="urn:opendaylight:params:xml:ns:yang:bgp-types">x:unicast-subsequent-address-family</safi>
171 <ipv4-routes xmlns="urn:opendaylight:params:xml:ns:yang:bgp-inet">
174 <prefix>10.0.0.10/32</prefix>
184 <global>10.10.1.1</global>
190 <uptodate>true</uptodate>
196 <afi xmlns:x="urn:opendaylight:params:xml:ns:yang:bgp-types">x:ipv4-address-family</afi>
197 <safi xmlns:x="urn:opendaylight:params:xml:ns:yang:bgp-types">x:unicast-subsequent-address-family</safi>
198 <ipv4-routes xmlns="urn:opendaylight:params:xml:ns:yang:bgp-inet"></ipv4-routes>
199 <attributes></attributes>
204 @line 8: **Adj-RIB-In** - Per-peer RIB, which contains unprocessed routes that has been advertised to local BGP speaker by the remote peer.
206 @line 13: Here is the reported route with destination *10.0.0.10/32* in Adj-RIB-In.
208 @line 35: **Effective-RIB-In** - Per-peer RIB, which contains processed routes as a result of applying inbound policy to Adj-RIB-In routes.
210 @line 40: Here is the reported route with destination *10.0.0.10/32*, same as in Adj-RIB-In, as it was not touched by import policy.
212 @line 62: **Adj-RIB-Out** - Per-peer RIB, which contains routes for advertisement to the peer by means of the local speaker's UPDATE message.
214 @line 66: The peer's Adj-RIB-Out is empty as there are no routes to be advertise from local BGP speaker.
222 :emphasize-lines: 12,18,42,48,72,76
227 "peer-id": "bgp://192.0.2.1",
229 "supported-tables": [
231 "afi": "bgp-types:ipv4-address-family",
232 "safi": "bgp-types:unicast-subsequent-address-family"
238 "afi": "bgp-types:ipv4-address-family",
239 "safi": "bgp-types:unicast-subsequent-address-family",
240 "bgp-inet:ipv4-routes":{
244 "prefix": "10.0.0.10/32",
253 "global": "10.10.1.1"
265 "effective-rib-in": {
268 "afi": "bgp-types:ipv4-address-family",
269 "safi": "bgp-types:unicast-subsequent-address-family",
270 "bgp-inet:ipv4-routes":{
274 "prefix": "10.0.0.11/32",
283 "global": "10.11.1.1"
298 "afi": "bgp-types:ipv4-address-family",
299 "safi": "bgp-types:unicast-subsequent-address-family"
307 @line 12: **Adj-RIB-In** - Per-peer RIB, which contains unprocessed routes that has been advertised to local BGP speaker by the remote peer.
309 @line 18: Here is the reported route with destination *10.0.0.10/32* in Adj-RIB-In.
311 @line 42: **Effective-RIB-In** - Per-peer RIB, which contains processed routes as a result of applying inbound policy to Adj-RIB-In routes.
313 @line 48: Here is the reported route with destination *10.0.0.10/32*, same as in Adj-RIB-In, as it was not touched by import policy.
315 @line 72: **Adj-RIB-Out** - Per-peer RIB, which contains routes for advertisement to the peer by means of the local speaker's UPDATE message.
317 @line 76: The peer's Adj-RIB-Out is empty as there are no routes to be advertise from local BGP speaker.
321 Also the same route should appeared in Loc-RIB now:
323 **URL:** ``/rests/data/bgp-rib:bgp-rib/rib/bgp-example/loc-rib/tables=bgp-types:ipv4-address-family,bgp-types:unicast-subsequent-address-family/ipv4-routes?content=nonconfig``
335 :emphasize-lines: 4,6,8,11,14
337 <ipv4-routes xmlns="urn:opendaylight:params:xml:ns:yang:bgp-inet">
340 <prefix>10.0.0.10/32</prefix>
350 <global>10.10.1.1</global>
356 @line 4: **Destination** - IPv4 Prefix Address.
358 @line 6: **AS_PATH** - mandatory attribute, contains a list of the autonomous system numbers through that routing information has traversed.
360 @line 8: **ORIGIN** - mandatory attribute, indicates an origin of the route - **ibgp**, **egp**, **incomplete**.
362 @line 11: **LOCAL_PREF** - indicates a degree of preference for external routes, higher value is preferred.
364 @line 14: **NEXT_HOP** - mandatory attribute, defines IP address of the router that should be used as the next hop to the destination.
372 :emphasize-lines: 6,8,10,13,16
375 "bgp-inet:ipv4-routes":{
379 "prefix": "10.0.0.10/32",
389 "global": "10.10.1.1"
397 @line 6: **Destination** - IPv4 Prefix Address.
399 @line 8: **AS_PATH** - mandatory attribute, contains a list of the autonomous system numbers through that routing information has traversed.
401 @line 10: **ORIGIN** - mandatory attribute, indicates an origin of the route - **ibgp**, **egp**, **incomplete**.
403 @line 13: **LOCAL_PREF** - indicates a degree of preference for external routes, higher value is preferred.
405 @line 16: **NEXT_HOP** - mandatory attribute, defines IP address of the router that should be used as the next hop to the destination.
409 There are much more attributes that may be carried along with the destination:
411 **BGP-4 Path Attributes**
413 * **MULTI_EXIT_DISC** (MED)
414 Optional attribute, to be used to discriminate among multiple exit/entry points on external links, lower number is preferred.
436 * **ATOMIC_AGGREGATE**
437 Indicates whether AS_SET was excluded from AS_PATH due to routes aggregation.
452 "atomic-aggregate": {
457 Optional attribute, contains AS number and IP address of a BGP speaker which performed routes aggregation.
466 <as-number>65000</as-number>
467 <network-address>192.0.2.2</network-address>
477 "network-address": "192.0.2.2"
482 Optional attribute, used to store optional attributes, unrecognized by a local BGP speaker.
490 <unrecognized-attributes>
491 <partial>true</partial>
492 <transitive>true</transitive>
494 <value>0101010101010101</value>
495 </unrecognized-attributes>
502 "unrecognized-attributes": {
506 "value": 0101010101010101
510 **Route Reflector Attributes**
513 Optional attribute, carries BGP Identifier of the originator of the route.
522 <originator>41.41.41.41</originator>
531 "originator": "41.41.41.41",
536 Optional attribute, contains a list of CLUSTER_ID values representing the path that the route has traversed.
545 <cluster>40.40.40.40</cluster>
554 "cluster": "41.41.41.41",
559 Optional attribute, may be used for policy routing.
568 <as-number>65000</as-number>
569 <semantics>30740</semantics>
583 **Extended Communities**
586 Identifies one or more routers that may receive a route.
594 <extended-communities>
595 <transitive>true</transitive>
597 <global-administrator>192.0.2.2</global-administrator>
598 <local-administrator>123</local-administrator>
600 </extended-communities>
601 <extended-communities>
602 <transitive>true</transitive>
603 <as-4-route-target-extended-community>
604 <as-4-specific-common>
605 <as-number>65000</as-number>
606 <local-administrator>123</local-administrator>
607 </as-4-specific-common>
608 </as-4-route-target-extended-community>
609 </extended-communities>
616 "extended-communities": [
619 "route-target-ipv4": {
620 "global-administrator": "192.0.2.2",
621 "local-administrator": 123
626 "as-4-route-target-extended-community": {
627 "as-4-specific-common": {
629 "local-administrator": 123
637 Identifies one or more routers that injected a route.
645 <extended-communities>
646 <transitive>true</transitive>
648 <global-administrator>192.0.2.2</global-administrator>
649 <local-administrator>123</local-administrator>
651 </extended-communities>
652 <extended-communities>
653 <transitive>true</transitive>
654 <as-4-route-origin-extended-community>
655 <as-4-specific-common>
656 <as-number>65000</as-number>
657 <local-administrator>123</local-administrator>
658 </as-4-origin-common>
659 </as-4-route-target-extended-community>
660 </extended-communities>
667 "extended-communities": [
670 "route-origin-ipv4": {
671 "global-administrator": "192.0.2.2",
672 "local-administrator": 123
677 "as-4-route-target-extended-community": {
678 "as-4-specific-common": {
680 "local-administrator": 123
688 Carries the cost to reach external neighbor.
696 <extended-communities>
697 <transitive>true</transitive>
698 <link-bandwidth-extended-community>
699 <bandwidth>BH9CQAA=</bandwidth>
700 </link-bandwidth-extended-community>
701 </extended-communities>
708 "extended-communities": {
710 "link-bandwidth-extended-community": {
711 "bandwidth": "BH9CQAA="
717 Optional attribute, carries accumulated IGP metric.
743 .. note:: When the remote peer disconnects, it disappear from operational state of local speaker instance and advertised routes are removed too.
745 External peering configuration
746 ''''''''''''''''''''''''''''''
747 An example above provided configuration for internal peering only.
748 Following configuration sample is intended for external peering:
750 **URL:** ``/rests/data/openconfig-network-instance:network-instances/network-instance=global-bgp/openconfig-network-instance:protocols/protocol=openconfig-policy-types:BGP/bgp-example/bgp/neighbors``
758 **Content-Type:** ``application/xml``
766 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
767 <neighbor-address>192.0.2.3</neighbor-address>
769 <peer-type>EXTERNAL</peer-type>
770 <peer-as>64999</peer-as>
774 @line 5: AS number of the remote peer.
778 **Content-Type:** ``application/json``
789 "neighbor-address": "192.0.2.3",
792 "peer-type": "EXTERNAL"
798 @line 6: AS number of the remote peer.
803 .. figure:: ./images/local-as.png
804 :alt: BGP eBGP with Local AS setup.
806 The local-AS feature allows a router(eBGP) to appear to be a member of a second autonomous system (AS), in addition to its real AS.
808 In above figure, R3 is eBGP router with configured local-as of 62, and peer-as of 63.
810 In updates sent from R3 to R2, the AS_SEQUENCE in the AS_PATH attribute contains "62 63". And updates sent from R2 to R3, the AS_SEQUENCE in the AS_PATH attribute contains "62 65".
812 AS 62 will be prepended to updates that are sent to and received from R3.
814 Following configuration sample is intended for external peering with Local AS:
816 **URL:** ``/rests/data/openconfig-network-instance:network-instances/network-instance=global-bgp/openconfig-network-instance:protocols/protocol=openconfig-policy-types:BGP/bgp-example/bgp/neighbors``
824 **Content-Type:** ``application/xml``
830 :emphasize-lines: 5,6
832 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
833 <neighbor-address>192.0.2.3</neighbor-address>
835 <peer-type>EXTERNAL</peer-type>
836 <peer-as>63</peer-as>
837 <local-as>62</local-as>
841 @line 5: AS number of the remote peer.
843 @line 6: Local AS number of the remote peer.
847 **Content-Type:** ``application/json``
853 :emphasize-lines: 7,8
858 "neighbor-address": "192.0.2.3",
860 "peer-type": "EXTERNAL",
868 @line 7: AS number of the remote peer.
870 @line 8: Local AS number of the remote peer.
872 Route reflector configuration
873 '''''''''''''''''''''''''''''
874 The local BGP speaker can be configured with a specific *cluster ID*.
875 Following example adds the cluster ID to the existing speaker instance:
877 **URL:** ``/rests/data/openconfig-network-instance:network-instances/network-instance=global-bgp/openconfig-network-instance:protocols/protocol=openconfig-policy-types:BGP/bgp-example/bgp/global/config``
885 **Content-Type:** ``application/xml``
894 <router-id>192.0.2.2</router-id>
896 <route-reflector-cluster-id>192.0.2.1</route-reflector-cluster-id>
899 @line 4: Route-reflector cluster id to use when local router is configured as a route reflector.
900 The *router-id* is used as a default value.
904 **Content-Type:** ``application/json``
913 "bgp-openconfig-extensions:config": {
914 "router-id": "192.0.2.2",
916 "route-reflector-cluster-id": "192.0.2.1"
920 @line 5: Route-reflector cluster id to use when local router is configured as a route reflector.
921 The *router-id* is used as a default value.
925 Following configuration sample is intended for route reflector client peering:
927 **URL:** ``/rests/data/openconfig-network-instance:network-instances/network-instance=global-bgp/openconfig-network-instance:protocols/protocol=openconfig-policy-types:BGP/bgp-example/bgp/neighbors``
935 **Content-Type:** ``application/xml``
943 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
944 <neighbor-address>192.0.2.4</neighbor-address>
946 <peer-type>INTERNAL</peer-type>
950 <route-reflector-client>true</route-reflector-client>
955 @line 8: Configure the neighbor as a route reflector client. Default value is *false*.
959 **Content-Type:** ``application/json``
970 "neighbor-address": "192.0.2.4",
972 "peer-type": "INTERNAL"
976 "route-reflector-client": true
983 @line 10: Configure the neighbor as a route reflector client. Default value is *false*.
985 Route reflector and Multiple Cluster IDs
986 ''''''''''''''''''''''''''''''''''''''''
988 An optional non-transitive attribute called CLUSTER_LIST is modified when a route reflector reflects a prefix.
989 For loop prevention the route reflector adds its own cluster ID to, and discards any update containing router's own cluster ID.
990 Using multiple cluster IDs allows updates to propagate to nodes that reside in a different cluster.
993 .. figure:: ./images/MultipleClustersIds.png
994 :alt: BGP RR Multiple Cluster IDs setup.
996 Following configuration sample is intended for route reflector client peering using specific cluster id:
998 **URL:** ``/rests/data/openconfig-network-instance:network-instances/network-instance=global-bgp/openconfig-network-instance:protocols/protocol=openconfig-policy-types:BGP/bgp-example/bgp/neighbors``
1000 **Method:** ``POST``
1006 **Content-Type:** ``application/xml``
1012 :emphasize-lines: 8,9
1014 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
1015 <neighbor-address>192.0.2.4</neighbor-address>
1017 <peer-type>INTERNAL</peer-type>
1021 <route-reflector-client>true</route-reflector-client>
1022 <route-reflector-cluster-id>192.0.2.4</route-reflector-cluster-id>
1027 @line 8: Configure the neighbor as a route reflector client. Default value is *false*.
1029 @line 9: Route-reflector cluster id to use for this specific neighbor when local router is configured as a route reflector.
1033 **Content-Type:** ``application/json``
1037 .. code-block:: json
1039 :emphasize-lines: 10,11
1044 "neighbor-address": "192.0.2.4",
1046 "peer-type": "INTERNAL"
1048 "route-reflector": {
1050 "route-reflector-client": true,
1051 "route-reflector-cluster-id":"192.0.2.4"
1058 @line 10: Configure the neighbor as a route reflector client. Default value is *false*.
1060 @line 11: Route-reflector cluster id to use for this specific neighbor when local router is configured as a route reflector.
1062 MD5 authentication configuration
1063 ''''''''''''''''''''''''''''''''
1064 The OpenDaylight BGP implementation is supporting TCP MD5 for authentication.
1065 Sample configuration below shows how to set authentication password for a peer:
1067 **URL:** ``/rests/data/openconfig-network-instance:network-instances/network-instance=global-bgp/openconfig-network-instance:protocols/protocol=openconfig-policy-types:BGP/bgp-example/bgp/neighbors``
1069 **Method:** ``POST``
1075 **Content-Type:** ``application/xml``
1083 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
1084 <neighbor-address>192.0.2.5</neighbor-address>
1086 <auth-password>topsecret</auth-password>
1090 @line 4: Configures an MD5 authentication password for use with neighboring devices.
1094 **Content-Type:** ``application/json``
1098 .. code-block:: json
1105 "neighbor-address": "192.0.2.5",
1107 "auth-password": "topsecret"
1113 @line 6: Configures an MD5 authentication password for use with neighboring devices.
1118 Allows the creation of a peer group configuration that applies to all peers configured as part of the group.
1120 A sample peer group configuration follows:
1122 **URL:** ``/rests/data/openconfig-network-instance:network-instances/network-instance=global-bgp/openconfig-network-instance:protocols/protocol=openconfig-policy-types:BGP/bgp-example/bgp/peer-groups``
1124 **Method:** ``POST``
1130 **Content-Type:** ``application/xml``
1138 <peer-group xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
1139 <peer-group-name>internal-neighbor</peer-group-name>
1141 <peer-type>INTERNAL</peer-type>
1142 <peer-as>64496</peer-as>
1146 <remote-port>179</remote-port>
1147 <passive-mode>true</passive-mode>
1152 <hold-time>180</hold-time>
1153 <connect-retry>10</connect-retry>
1158 <route-reflector-client>false</route-reflector-client>
1163 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-UNICAST</afi-safi-name>
1164 <!--Advertise N Paths
1165 <receive>true</receive>
1166 <send-max>0</send-max>-->
1169 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-UNICAST</afi-safi-name>
1172 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-LABELLED-UNICAST</afi-safi-name>
1175 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV6-LABELLED-UNICAST</afi-safi-name>
1178 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV4-UNICAST</afi-safi-name>
1181 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L3VPN-IPV6-UNICAST</afi-safi-name>
1184 <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:L2VPN-EVPN</afi-safi-name>
1187 <afi-safi-name>LINKSTATE</afi-safi-name>
1190 <afi-safi-name>IPV4-FLOW</afi-safi-name>
1193 <afi-safi-name>IPV6-FLOW</afi-safi-name>
1196 <afi-safi-name>IPV4-L3VPN-FLOW</afi-safi-name>
1199 <afi-safi-name>IPV6-L3VPN-FLOW</afi-safi-name>
1204 @line 2: Peer Group Identifier.
1208 **Content-Type:** ``application/json``
1212 .. code-block:: json
1219 "peer-group-name": "internal-neighbor",
1222 "peer-type": "INTERNAL"
1227 "passive-mode": true
1236 "route-reflector": {
1238 "route-reflector-client": false
1244 "afi-safi-name": "openconfig-bgp-types:L2VPN-EVPN"
1247 "afi-safi-name": "openconfig-bgp-types:L3VPN-IPV6-UNICAST"
1250 "afi-safi-name": "bgp-openconfig-extensions:IPV6-FLOW"
1253 "afi-safi-name": "openconfig-bgp-types:IPV4-LABELLED-UNICAST"
1256 "afi-safi-name": "openconfig-bgp-types:L3VPN-IPV4-UNICAST"
1259 "afi-safi-name": "openconfig-bgp-types:IPV6-LABELLED-UNICAST"
1262 "afi-safi-name": "bgp-openconfig-extensions:LINKSTATE"
1265 "afi-safi-name": "openconfig-bgp-types:IPV6-UNICAST"
1268 "afi-safi-name": "bgp-openconfig-extensions:IPV4-L3VPN-FLOW"
1271 "afi-safi-name": "bgp-openconfig-extensions:IPV6-L3VPN-FLOW"
1274 "afi-safi-name": "openconfig-bgp-types:IPV4-UNICAST"
1277 "afi-safi-name": "bgp-openconfig-extensions:IPV4-FLOW"
1285 @line 4: Peer Group Identifier.
1289 A sample basic neighbor configuration using a peer group follows:
1291 **URL:** ``/rests/data/openconfig-network-instance:network-instances/network-instance=global-bgp/openconfig-network-instance:protocols/protocol=openconfig-policy-types:BGP/bgp-example/bgp/neighbors``
1293 **Method:** ``POST``
1299 **Content-Type:** ``application/xml``
1307 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
1308 <neighbor-address>192.0.2.1</neighbor-address>
1310 <peer-group>/bgp/neighbors/neighbor/bgp/peer-groups/peer-group[peer-group-name="internal-neighbor"]</peer-group>
1314 @line 4: Peer group identifier.
1318 **Content-Type:** ``application/json``
1322 .. code-block:: json
1329 "neighbor-address": "192.0.2.1",
1331 "peer-group": "/bgp/neighbors/neighbor/bgp/peer-groups/peer-group[peer-group-name=\"internal-neighbor\"]"
1337 @line 6: Peer group identifier.
1339 .. note:: Existing neighbor configuration can be reconfigured (change configuration parameters) anytime.
1340 As a result, established connection is dropped, peer instance is recreated with a new configuration settings and connection re-established.
1342 .. note:: The BGP configuration is persisted on OpendDaylight shutdown and restored after the re-start.