Re: [vpp-dev] searching for all routes that point to an attached next-hop neighbor #routing

2021-12-29 Thread Neale Ranns
Hi David, Here’s some back ground on FIB graph walks: https://s3-docs.fd.io/vpp/21.10/gettingstarted/developers/fib20/graphwalks.html I can’t think of any examples similar to what you are attempting, but you could conceivably achieve it with: 1 – a pub/sub API. Similar to

Re: [vpp-dev] searching for all routes that point to an attached next-hop neighbor #routing

2021-12-29 Thread David Gohberg
Hi Neale, I have a custom plugin in which I want to extract this information and I much prefer this approach. Do you have any references on how to walk the FIB graph or existing features that perform similar tasks? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group.

Re: [vpp-dev] searching for all routes that point to an attached next-hop neighbor #routing

2021-12-29 Thread Neale Ranns
Hi David, Are you hoping to get these routes from queries via the CLI/API or are you prepared to write a plugin in VPP to extract and publish this information to your control plane via new events? For the former, Stanislav’s advice is your best option. So I would suggest you consider the

Re: [vpp-dev] searching for all routes that point to an attached next-hop neighbor #routing

2021-12-23 Thread David Gohberg
posting again because not sure message went through: Thanks for the quick reply Stanislav, I'm inserting hooks into the VPP control plane in order to offload certain information to an external hardware dataplane. In the case of route resolutions, I want to be able to say : "Ok, I got the arp

Re: [vpp-dev] searching for all routes that point to an attached next-hop neighbor #routing

2021-12-23 Thread Stanislav Zaikin
Hi David, I'll answer from my perspective (maybe not 100% correct). Both your commands will create 2 paths with attached nexthop. It will source the fib path for 10.0.0.2/32 based on the "connected" path for 10.0.0.0/24 (which is a glean path on the interface GigabitEthernet2/0/1). You'd see it

[vpp-dev] searching for all routes that point to an attached next-hop neighbor #routing

2021-12-23 Thread David Gohberg
Hello, >From reading the routing data model: https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/fib20/routes.html#id2 I understand that when I add a static route (using the "ip route add" command) to an attached next hop, VPP will resolve that route, which is triggered (in my