Never mind. Found my problem - configuring “add-path”, in addition to 
configuring identifier, at both goBGP server and its bgp-peers worked.

Thanks,

Bakul Khanna
Viasat Inc.

From: Khanna, Bakul
Sent: Wednesday, April 10, 2019 4:21 PM
To: gobgp-devel@lists.sourceforge.net
Subject: Having issues with goBGP (2.1.0) export-policy for routes of the kind 
"same-prefix different-nexthop"

Hello,

I read up on the use of “identifier” in 
https://github.com/osrg/gobgp/issues/1615 and am trying to use it to advertise 
two routes of the kind “same-prefix different-nexthop” as follows - to two 
different bgp neighbors (10.0.0.1 and 10.0.0.2) based on community:

I have added the following two routes via the goBGP CLI:

1.2.3.4/32 nexthop 10.1.1.10 community 100:100 identifier 1
1.2.3.4/32 nexthop 100.1.1.100 community 200:200 identifier 2

When I do a “./gobgp global rib” I see both routes:
1.2.3.4/32 nexthop 10.1.1.10 community 100:100
1.2.3.4/32 nexthop 100.1.1.100 community 200:200

When I do a “./gobgp n 10.0.0.1 adj-out” I see the route:
1.2.3.4/32 nexthop 10.1.1.10 community 100:100

When I do a “./gobgp n 10.0.0.2 adj-out” I see:
Network not in table

Why doesn’t the “1.2.3.4/32 nexthop 100.1.1.100 community 200:200” route get 
advertised over to the second bgp neighbor?

Just to confirm that my community filtering is correctly configured. I delete 
the route “1.2.3.4/32 nexthop 10.1.1.10 community 100:100”.

When I do a “./gobgp global rib” I see one route:
1.2.3.4/32 nexthop 100.1.1.100 community 200:200

When I do a “./gobgp n 10.0.0.1 adj-out” I see:
Network not in table

When I do a “./gobgp n 10.0.0.2 adj-out” I see:
1.2.3.4/32 nexthop 100.1.1.100 community 200:200


Why don’t both such routes – instead of just one - get advertised over the bgp 
neighbor based on community? My colleague also opened a I ticket on this topic 
https://github.com/osrg/gobgp/issues/2055. Any insight would be greatly 
appreciated.

Thanks,

Bakul Khanna
Viasat Inc.

_______________________________________________
gobgp-devel mailing list
gobgp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gobgp-devel

Reply via email to