> On Feb 19, 2020, at 2:02 AM, Neale Ranns via Lists.Fd.Io > <nranns=cisco....@lists.fd.io> wrote: > > > Hi Chris, > > Adding an API to dump a single route would be a welcome addition to the API.
Ok, I'll do that then. For tables of things (at least in ip.api) I'm noticing a pattern of xADD, xDEL, xDUMP I think the API would benefit from including LOOKUP to that pattern: xADD, xDEL, xDUMP, xLOOKUP The code should lend itself to factorization as doing the ADD/DEL is generally going to require doing a lookup to find the entry. Thanks, Chris. > > /neale > > From: <vpp-dev@lists.fd.io> on behalf of Paul Vinciguerra > <pvi...@vinciconsulting.com> > Date: Wednesday 19 February 2020 at 04:21 > To: Christian Hopps <cho...@chopps.org> > Cc: vpp-dev <vpp-dev@lists.fd.io> > Subject: Re: [vpp-dev] route lookup api > > Those don't seem to be exposed via the api dump/details. > > The pattern that is commonly used in the test framework is to call > vapi.cli_inline(cmd="show ip fib 1.2.3.4/24") > > On Tue, Feb 18, 2020 at 5:53 PM Christian Hopps <cho...@chopps.org> wrote: >> In the CLI there's an option to lookup route for a given IP. Is there a >> similar interface in the binary API? >> >> The code I'm looking at now is doing an entire fib dump to look for this >> route, which seems problematic as all the logic VPP might us for what entry >> to select has to be attempted to be replicated in the client getting this >> dump. So I'm hoping theres a better way. :) >> >> Thanks, >> Chris. >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15462): https://lists.fd.io/g/vpp-dev/message/15462 Mute This Topic: https://lists.fd.io/mt/71382541/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-