.. _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:** ``/rests/data/bgp-peer-rpc:route-refresh-request`` **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:** ``/rests/data/bgp-peer-rpc:reset-session`` **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\"]" } }