First scenario: Configure ODL with GR (graceful-restart), connect peer and send route, kill peer and wait 10sec based on reset-timer for routes to diseappear.
Steps to reproduce:
Prerequisites: Odl running with features:
feature:install odl-restconf odl-bgpcep-bgp odl-bgpcep-bgp-config-example
1. Configure peers
./configure.py
2. start play.py
./start_play1.py
3. Kill play.py with
Ctrl+C
4. Wait for rroutes to diseapper for RIB, we can check with simple request (Requires jq > sudo apt-get install jq)
curl -H "Accept: application/json" -u admin:admin "http://localhost:8181/restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib" | jq "."
Second scenario: Reconnecting after graceful restart (ODL is Listener)
1. Repeat first 2 steps from First scenario
2. Start second play.py
./start_play4.sh
We expect peer to reconnect however connection is Ceased
At this point we can watch karaf logs, and/or wireshark results