.. _bgp-user-guide-route-refresh-capability: Route Refresh ============= The Route Refresh Capability allows to dynamically request a re-advertisement of the Adj-RIB-Out from a BGP peer. This is useful when the inbound routing policy for a peer changes and all prefixes from a peer must be reexamined against a new policy. .. contents:: Contents :depth: 2 :local: Configuration ^^^^^^^^^^^^^ The capability is enabled by default, no additional configuration is required. Usage ^^^^^ To send a Route Refresh request from OpenDaylight BGP speaker instance to its neighbor, invoke RPC: **URL:** ``/restconf/operations/bgp-peer-rpc:route-refresh-request`` **RFC8040 URL:** ``/rests/data/bgp-peer-rpc:route-refresh-request?content=non-config`` **Method:** ``POST`` .. tabs:: .. tab:: XML **Content-Type:** ``application/xml`` **Request Body:** .. code-block:: xml types:ipv4-address-family types:unicast-subsequent-address-family /rib:bgp-rib/rib:rib[rib:id="bgp-example"]/rib:peer[rib:peer-id="bgp://10.25.1.9"] .. tab:: JSON **Content-Type:** ``application/json`` **Request Body:** .. code-block:: json { "bgp-peer-rpc:input": { "afi": "bgp-types:ipv4-address-family", "safi": "bgp-types:unicast-subsequent-address-family", "peer-ref": "/rib:bgp-rib/rib:rib[rib:id=\"bgp-example\"]/rib:peer[rib:peer-id=\"bgp://10.25.1.9\"]" } } References ^^^^^^^^^^ * `Route Refresh Capability for BGP-4 `_ Peer Session Release -------------------- BGP provides a RPC feature to release a Neighbor session. .. contents:: Contents :depth: 2 :local: Configuration ^^^^^^^^^^^^^ The capability is enabled by default, no additional configuration is required. Usage ^^^^^ To release neighbor session, invoke RPC: **URL:** ``/restconf/operations/bgp-peer-rpc:reset-session`` **RFC8040 URL:** ``/rests/data/bgp-peer-rpc:reset-session?content=non-config`` **Method:** ``POST`` .. tabs:: .. tab:: XML **Content-Type:** ``application/xml`` **Request Body:** .. code-block:: xml /rib:bgp-rib/rib:rib[rib:id="bgp-example"]/rib:peer[rib:peer-id="bgp://10.25.1.9"] .. tab:: JSON` **Content-Type:** ``application/json`` **Request Body:** .. code-block:: json { "bgp-peer-rpc:input": { "peer-ref": "/rib:bgp-rib/rib:rib[rib:id=\"bgp-example\"]/rib:peer[rib:peer-id=\"bgp://10.25.1.9\"]" } }