Closed drag0n141 closed 1 year ago
I'll give it a shot :)
So it doesn't look like there's a way to do this via the builtin API, other than enabling / disabling routes in a certain order to determine which is primary.
As of now, it looks like if you just enable the route on two nodes it "just works" -- Do you need to be able to select which is primary?
I can also add an indicator of route failover if that would be beneficial
As of now, it looks like if you just enable the route on two nodes it "just works" -- Do you need to be able to select which is primary?
Yes correctly :) but dont know i that is possible i am not using the routing failover at the moment.
I can also add an indicator of route failover if that would be beneficial
I think that would help.
It's technically possible -- I'll see what I can do! I'm working on rewriting how I manage routes so once that's done I"ll work on this
I've added some preliminary work into v0.6.0
You can test with ghcr.io/ifargle/headscale-webui:testing
right now if you'd like to try it out
I have installed the :testing version. Now all Routes are duplicated. One normal Route and one as "Failover Pair"
Interesting... All routes, including the exit routes?
Can you give examples of the failover ranges you are using? All I'm doing right now is a simple list search to determine if there are duplicate IP's: https://github.com/iFargle/headscale-webui/blob/fc5908f3e2dba26d96756e9242babd2b63226bab/renderer.py#L307-L332
Oh I see the issue.. https://github.com/iFargle/headscale-webui/blob/fc5908f3e2dba26d96756e9242babd2b63226bab/renderer.py#L313 Should be... https://github.com/iFargle/headscale-webui/blob/96a55a385d5557ce487521e52da45d734fa2b8ba/renderer.py#L313
I've pushed anew build. Let me know if you still see duplicates
I need to figure out a better way to do this. I think in the next release I'll add another button to the machines page dedicated to managing routes. The way it's currently implemented is limited. It's also something I've been wanting for a bit but it'll require some work
Now it looks good no more duplicates :)
Perfect!
They're colored based on their pair. I think I'm going to add a routes page to this release. I'll see if I have time
btw don't use testing for long -- I am always pushing updates to it so things will break all the time. Or just use this current release of testing until I push it to main :)
Back at it this week. Made some good improvements in the testing build
Once I finish the code up for better enabling/disabling of these routes it will be pushed to main
Closing -- This will be in main in about 1.5 hours (multiarch builds take a while). Please use the main branch after it's available.
Thanks!
Is it planned to add the subnet failover function to the webui?
https://github.com/juanfont/headscale/pull/1024