Skip to main content
Question

Using NQE to get BGP routes advertised.

  • August 19, 2024
  • 4 replies
  • 80 views
  • Translate

cariddir
Spotter
Forum|alt.badge.img+4

Has anyone put together a simple Query to grab the advertised routes to a BGP Peer?
I haven’t had much time to try, but maybe someone has done this on side.
In summary, I want to try and associate routes to a device/location in our branch environment.

foreach device in network.devices

where "Branch" in device.tagNames && "WAN" in device.tagNames

 

I thought there would be some simple query in the model to just pull ‘bgp advertised routes’ and I could limit it with the above, and associate that route to that location. But after looking for 10 min, I couldn’t find anything of use. 

Anyway, if anyone has done something, it would be great to see/try. 
I saw a very ‘wild’ one on the community @baher , amazing work BTW.

But i’m basically looking for the result of the routes advertised to any BGP neighbor.

Forum|alt.badge.img+1
  • Employee
  • August 19, 2024


@cariddir 

You have to enable BGP advertisement on the device, You can then inspect ribIn and ribOut. 

Note: Adding BGP advertisements will increase collection time.

 

 

Translate

Christopher
Employee
Forum|alt.badge.img+3

@cariddir 

You can modify the query in the example listed in the model under

network > devices > bgpRib > afiSafis > neighbors > adjRibOutPost > routes

with

where "Branch" in device.tagNames && "WAN" in device.tagNames

As Gary mentioned, you will need to enable collection of BGP routes on the devices from which you need to view the data.

Translate

cariddir
Spotter
Forum|alt.badge.img+4
  • Spotter
  • August 20, 2024

This is great. And it works… Except, 90% of our WAN is ASS-D-WAN now, (not a typo, just a frustration!

 I’m not sure how to achieve the same result with OMP.
Anyway, back to the drawing board.

Translate

Christopher
Employee
Forum|alt.badge.img+3

The adjRibOUtPost object lists entries from the BGP table that are being advertised to BGP neighbors.

To model routes in the routing table (whether or not the device runs BGP),  Forward Enterprise normalizes the routes into the Abstract Forwarding Tables.

These tables may have what you are looking for in your SDWAN devices.

 

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings