-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source database order affecting results #873
Comments
That is the intended result, use the source that was specified. You have AS-GOOGLE in both RIPE and RADB and the one in RIPE does not have any members. Now if you mean it shouldn't use a no-member as-set, that i can agree with. |
It should use a no-member set, because the no-member set exists. We have to assume it’s empty for a reason, we shouldn’t proceed in a non-deterministic fashion and pick some other set. We documented this years ago:
https://irrd.readthedocs.io/en/stable/admins/migrating-legacy-irrd/ |
So then we'll affect query results with the order of |
Yes, the idea is that the IRRd operator sets a default ordering they feel comfortable with (a reasonable approach might be to prioritise RADB, then the RIR-managed IRRdbs, and then the rest); in addition - the issuer of the query can always decide their preference for ordering. in any case the order always has to be set to deterministically resolve |
Various registries (both RIR and third party IRR) have undertaken efforts in the last 12 months to promote the concept of hierarchical as-set naming to reduce the risk of naming collisions and unexpected outcomes |
Hello!
!g query returns data from all given sources. This does not make sense. Hierarchical as-set naming is cool but how it can prevent similar as-set names in different IRR databases? |
This is indeed working as designed, although there are unfortunate situations where it is inconvenient. The big problem with any alternatives is maintaining backwards compatibility while actually helping for current problematic sets. |
Why not though? At all companies I worked we had a source list specific to each peer / customer, going into the thousands. Data like this can be stored in SQL or YAML, pretty straight forward. Also the major IX Route Server automation software packages (IXP Manager & ArouteServer) also support this model out-of-the-box. |
You don't need to; all you need is a default sources list, plus a list of exceptions for specific customers. At 2914, we only need to define a custom sources list for ~5% of ASNs we peer with. And about 70% of those exceptions are the same ordering change (promoting RIPE to the front of our default list). |
Hello!
Why then RIPE-style queries work in different manner? as-set: AS-GOOGLE -k -K -s RADB,RIPE AS-GOOGLE -- output are exactly the same, i.e. result does not depend on the sources' order. ~# telnet whois.radb.net 43 Sorry, this does not look like right design. IMHO returned results should not depend on style of query. |
When querying RPSL object text, which includes |
Doesn't seem like there is any bug here. #917 covers some of the underlying RPSL issues. |
Describe the bug
Database order affecting query results with or without
sources_defualt:
defined.To Reproduce
Expected behaviour
Results to the be same regadless of the order of source databases selected.
IRRd version you are running
4.4.2
Additional context
The text was updated successfully, but these errors were encountered: