Extract to json file the "show bgp ipv4 unicast json detail" #11861
-
I started today with FRRouting so bear in mind my lack of knowledge 😅 ContextI implemented a BGP peer in order to receive an ISP's BGP full-routing table (880k routes). I would like to use FRRouting to manipulate the BGP table information to track communities, as-paths and other details. I see that with the command "show bgp ipv4 unicast json detail" it's generated a json file with all the information I need. With this json I could then parse it with some python scripts and and extract relevant details. Some of the use-cases are:
QuestionI don't know if there is a way to fetch this information on the FRRouting filesystem, because logging the vtysh with all those routes its not practical and hard to automate. Is there a way for me to get that info in json fast? Thanks 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
nope there is no good way beyond what you've suggested at this point in time |
Beta Was this translation helpful? Give feedback.
nope there is no good way beyond what you've suggested at this point in time