Coder Social home page Coder Social logo

Comments (5)

fujita avatar fujita commented on September 3, 2024

Thanks for the report! Can you try the latest master? Should be fixed by 310543d

Looks like the mrt file includes routes that rustybgp can't handle. Fixed rustybgp to just ignore such rather than returning an error.

from rustybgp.

Cinderella-Man avatar Cinderella-Man commented on September 3, 2024

Thank you very much for fixing the code so quickly. It's still parsing the file, but I assume that it now works fine.

For those routes that are ignored - would it be beneficial to log them somehow(even on the "debug" level)?

from rustybgp.

Cinderella-Man avatar Cinderella-Man commented on September 3, 2024

Two additional things that I realised as it started to work:

  1. I'm getting the following message printed multiple times as it parses:
failed to parse: unknown mup subtype: 185

As far as I know, the file should be fully compatible with the BGP specs, so this should be a valid route - have you ever seen this warning? We were getting the same from the gobgp router.

  1. We are using a configuration that creates MRT update dumps every 60 seconds:
[[mrt-dump]]
  [mrt-dump.config]
    dump-type = "updates"
    file-name = "/tmp/mrt-updates-20160510.1546.dump"
    rotation-interval = 60

What was happening with gobgp is that it was parsing the file name, and when it found the 20160510.1546 part, it was actually clever enough to understand that this it Ymd.Hm and it was storing data to a new file every 60 seconds, i.e. "/tmp/mrt-updates-20230131.1518.dump", "/tmp/mrt-updates-20230131.1519.dump" etc. - is there any chance that this could be supported?

Please let me know if I should open separate issues for all three "problems" described above,

Thanks,

Kamil

from rustybgp.

fujita avatar fujita commented on September 3, 2024

gobgp command gives the following warning:

failed to parse: unknown mup subtype: 185

MUP SAFI looks like related. Please create an issue on gobgp.

About a way to dump MRT, feel free to create an issue on gobgp. Seems that everyone wants the own way to dump MRT. GoBGP can't support hundreds of ways to dump MRT. So I don't have any plan to add a new way though.

from rustybgp.

Cinderella-Man avatar Cinderella-Man commented on September 3, 2024

Hello @fujita

Thanks for your last answer. I just wanted to get back to dumping the MRT topic. What I tried to say is that I like the way that the gobgp is currently rotating dump files - I only pointed out that rustybgp is not behaving in the same way. Would it be possible to get consistent(or similar) behaviour as gobgp offers?

Thanks 🙏

Kamil

from rustybgp.

Related Issues (15)

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.