GithubHelp home page GithubHelp logo

Comments (5)

annikahannig avatar annikahannig commented on June 29, 2024

This looks like a parsing issue in the birdwatcher.

from alice-lg.

annikahannig avatar annikahannig commented on June 29, 2024

I'll use your show protocols all dump to debug this :)

from alice-lg.

dylancmds avatar dylancmds commented on June 29, 2024

Let me know if I can get you anything else!

from alice-lg.

ijg00 avatar ijg00 commented on June 29, 2024

I'm also seeing the same problem. I've since updated to the latest commit of alice-lg and birdwatcher. The output has changed slightly (removing the "Unknown x" part) but still present:

alice

Similar to @dylancmds clicking through shows valid attributes so my instance is also parsing some data from Bird.

from alice-lg.

JackMarik avatar JackMarik commented on June 29, 2024

Same issue with Bird 1.6

EDIT: Solved, it was indeed a parsing issue. In particular, this line from parser.go
regex.routes.startDefinition = regexp.MustCompile(^([0-9a-f\.\:\/]+)\s+via\s+([0-9a-f\.\:]+)\s+on\s+([\w\.]+)\s+\[([\w\.:]+)\s+([0-9\-\:\s]+)(?:\s+from\s+([0-9a-f\.\:\/]+)){0,1}\]\s+(?:(\*)\s+){0,1}\((\d+)(?:\/\d+){0,1}\).*)

This depends on the word "via" on the first line of the "show route all" output from bird. But if the route is not reachable the world via is not there (neither is the IP or interface) (it says unreachable instead), thus the line won't pass the regex.

Here's an example line that should pass the regex.
8.8.8.8/32 via 9.9.9.9 on eth0 [client1 2024-05-20 12:00:00 from 1.1.1.1] * (100/?) [i]
When you the route is unreachable, the line will look like this and won't pass regex.
8.8.8.8/32 unreachable [client1 2024-05-20 12:00:00 from 1.1.1.1] * (100/?) [i]

Solved it by making sure all routes are reachable.

from alice-lg.

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.