osrg / gobgp

BGP implemented in the Go Programming Language
https://osrg.github.io/gobgp/
Apache License 2.0
3.66k stars 699 forks source link

gobgp route is not deleted when it is updated to a loopped as path that is rejected by neighbor. #2832

Open caili1981 opened 2 months ago

caili1981 commented 2 months ago

version

gobgp version 2.34.0

TOPO

R1(65002) <-> R2(65531, allowOwnAs=0)

step to reproduce

  1. at R1
    gobgp g r a 1.1.1.1/32 aspath 65555,1,2,3
  2. at R1
    gobgp g r a 1.1.1.1/32 aspath 65531,1,2,3
  3. at R2
    gobgp g r 1.1.1.1/32 
    Network              Next Hop             AS_PATH              Age        Source_AS/Source_id       Attrs
    *> 1.1.1.1/32           169.254.101.1        65002 65555 1 2 3    01:25:46   65002/172.16.0.2          [{Origin: ?}