Git Product home page Git Product logo

Comments (2)

snar avatar snar commented on July 20, 2024

On Fri, Apr 08, 2016 at 02:48:25AM -0700, Henrik Thostrup Jensen wrote:

Is this intentional? If I specify multiple sources, I'd expect the result from
both to be included.

Please, note that bgpq3 does not perform multiple per-source searches
itself, -S just instructs IRRD what sources to use before
invoking search commands:

snar@fri:~/compile/bgpq3>./bgpq3 -jf1 -ddddS jpirr,ripe AS-SINET
DEBUG: bgpq_expander.c:742 bgpq_expand Acquired sendbuf of 1065728 bytes
DEBUG: bgpq_expander.c:771 bgpq_expand Requesting sources !sjpirr,ripe
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEBUG: bgpq_expander.c:775 bgpq_expand Got answer C
DEBUG: bgpq_expander.c:597 bgpq_expand_irrd expander: sending '!iAS-SINET,1

And, as per irrd user manual (http://www.irrd.net/irrd-user.pdf, p. 35):

[quote starts]
The !i command searches the databases in the order specified by the user and
returns when it finds an object. When the ,1 option is specified to indicate
embedded set expansion, the command will expand embedded sets using the
database where the set was found. The other database sources, as specified by
the user, will only be used when a match is not found in the source in which
the set was found.
Therefore in the above sample command !iAS-ICINET,1, assuming the specified
search order is RADB, RIPE, Cable & Wireless, and the embedded set AS-LTINET
is found in the RIPE registry, AS-LTINET will be expanded first in the RIPE
registry, rather than in the RADB.
[/quote ends]

So, yes, this is intended behaviour (of IRRd).

from bgpq3.

htj avatar htj commented on July 20, 2024

Fair enough.

I would update the bgpq3 help output though. Right now it says:

-S sources: use only specified sources (default: RADB,RIPE,APNIC)

The use of plural is pretty confusing and does not match the above.

from bgpq3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.