[BGPCEP-775] BGP with pre-set routes doesn't send them to peer. Created: 23/Mar/18  Updated: 14/Jun/18  Resolved: 29/Mar/18

Status: Verified
Project: bgpcep
Component/s: BGP
Affects Version/s: Fluorine
Fix Version/s: Fluorine

Type: Bug Priority: Medium
Reporter: Tomas Markovic Assignee: Claudio David Gasparini
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File APP_play.sh     File APP_speaker_delete.sh     File APP_speaker_send.sh     File conf_app_peer.py     File karaf_fluorine.log     File karaf_oxygen.log     File reconf_safi_all_internal_17900.py     File rib_fluorine_after.log     File rib_oxygen_after.log    

 Description   

Overview: We configure app-peer and one ibgp. Add 3 routes with app-peer into rib. Start play.py with ibgp-address to initiate connection. Tests whether 3 pre-set routes appear in specific rib for ibgp.

This issue is seen on releng tests in here

Also seen in full rib logs in attachements. Check rib_oxygen_after.log where 127.0.0.2 peer does contain routes, and rib_fluorine_after.log does not. There are no errors in karaf.log

Adding karaf.log from both versions as well, although there are no apparent errors.

Steps to reproduce locally>
1)start bin/karaf (fluorine)
2)run in karaf console

feature:install odl-restconf odl-bgpcep-bgp odl-bgpcep-bgp-config-example

3) go to project integration/test directory, make sure it's up-to-date.
4) switch to directory tools/fastbgp
5)>
run scripts from attachements>
./reconf_safi_all_internal_17900.py
(configures ibgp peer 127.0.0.2 at remote-port 17900)
./conf_app_peer.py
(configures application peer at 127.0.0.1)
./APP_speaker_send.sh
(prefills bgp rib with 3 routes)
./APP_play.sh
(starts bgp peer with play.py)

At this point we should see 3 routes which we send from app peer in rib specific for ibgp with address 127.0.0.2
check full rib at: (particulary peer 127.0.0.2)

curl -H "Accept: application/json" -u admin:admin "http://localhost:8181/restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib" | jq "."

also you can check bgp_peer.log which is automatically created after play.sh and should contain information about recieved routes. If failed, there are no information about any routes.
In tests we check for specific line in bgp_peer.log
SUCCESS> INFO BGP-Dummy-1: total_received_nlri_prefix_counter: 3
FAILURE> INFO BGP-Dummy-1: total_received_nlri_prefix_counter: 0

optionally you can than delete the routes with APP_speaker_delete.py to repeat the process.



 Comments   
Comment by Claudio David Gasparini [ 29/Mar/18 ]

https://git.opendaylight.org/gerrit/#/c/70117/

Generated at Wed Feb 07 19:14:05 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.