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
But i’m basically looking for the result of the routes advertised to any BGP neighbor.