xddxdd / bird-lg-go

BIRD looking glass in Go, for better maintainability, easier deployment & smaller memory footprint
GNU General Public License v3.0
141 stars 27 forks source link

Dynamic BGP sessions show up in red #97

Closed rissson closed 9 months ago

rissson commented 9 months ago

BGP dynamic sections (described here under the neighbor option) allow bird to wait for a neighbor to connect and then creates an new dynamic protocol in bird.

That new dynamic protocol shows up properly in green, but the initial protocol always stays in start state and thus shows up in red:

image

Real-time example at https://lg.lama.tel

I looked a bit at the code that does the rendering, and because it bases the color on the state attribute, it doesn't look at the info that says "passive". What would be the best way forward to get this to not show up in red?

I'm very much willing to contribute code to the project, just asking for guidance before I write anything

xddxdd commented 9 months ago

In my opinion, the best way to handle this is to check the "passive" text and override the row color in this case.