keepalived UI: add keepalived UI

BPFire red0 does not support multicast, need to
have unicast peer configured, then the virtual
ipaddress can be added to red0 interface.

the UI requires /var/ipfire/keepalived/runsettings
/var/ipfire/keepalived/settings to be created, so
add them lfs/configroot

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2024-06-25 17:20:58 +00:00
parent 07750a74ba
commit ed89f965bf
7 changed files with 391 additions and 1 deletions

View File

@@ -366,6 +366,14 @@ sub validip
}
}
sub validnum {
my $num = shift;
if ($num =~ /^\d+$/) {
return 1;
}
return 0;
}
sub validmask {
my $mask = shift;