mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-02 08:12:54 +02:00
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:
@@ -366,6 +366,14 @@ sub validip
|
||||
}
|
||||
}
|
||||
|
||||
sub validnum {
|
||||
my $num = shift;
|
||||
if ($num =~ /^\d+$/) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
sub validmask {
|
||||
my $mask = shift;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user