Skip to content
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

monocle looks only for routing updates? #68

Open
shyamkkhadka opened this issue Dec 29, 2024 · 6 comments
Open

monocle looks only for routing updates? #68

shyamkkhadka opened this issue Dec 29, 2024 · 6 comments

Comments

@shyamkkhadka
Copy link

I could not find a way to look for RIB files. For example, I found all the prefixes that originated from an ASN using -m, --elem-type <ELEM_TYPE> option specifying announcement/withdrawal.

@digizeph
Copy link
Member

Assuming you're talking about monocle search, it is designed to process only updates files. It mainly looks for "when" some announcements were made and RIB dumps do not provide that information.

You can use "monocle parse" command to handle individual RIB dump files if needed.

@shyamkkhadka
Copy link
Author

Yes, I asked about the monocle search. Now, I understand the purpose of monocle search.

It would be nice if monocle parse took default argument looking into all MRT files without specifying a single file.
Anyway, thanks for the information.

@digizeph
Copy link
Member

Can you help me understand what you mean by "all the RIB dump files"?

"monocle parse" will likely remains parsing only the specified files. It is possible to add option to "monocle search" to forcing it looking at RIB dump files only, but I will need to have some more details on the use case to design an appropriate behaviors for it.

In any case, happy to help

@shyamkkhadka
Copy link
Author

I meant to look for all the RIB dump files which Routeviews and RIS projects update in certain intervals. As I have been using BGPreader, I think my mind is pre-occupied with its features and expecting the same with the monocle.

@digizeph
Copy link
Member

I understood now. Thanks for the clarification!

I think we can add the monocle search --dump-type to specify the data types:

  • updates (default): updates files only
  • rib: rib files only
  • updates,rib: both files
    It'll be a comma-separated string argument.

It will not be a breaking change and allows users to ask for RIB or both if needed. What do you think?

@shyamkkhadka
Copy link
Author

That is exactly what I thought of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants