and register ebtables option with the API
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
minimum => 0,
optional => 1,
},
minimum => 0,
optional => 1,
},
+ ebtables => {
+ description => "Enable ebtables rules cluster wide.",
+ type => 'boolean',
+ default => 1,
+ optional => 1,
+ },
policy_in => {
description => "Input policy.",
type => 'string',
policy_in => {
description => "Input policy.",
type => 'string',
if (($value > 1) && ((time() - $value) > 60)) {
$value = 0
}
if (($value > 1) && ((time() - $value) > 60)) {
$value = 0
}
- } elsif ($line =~ m/^(ebtables_enable):\s*(0|1)\s*$/i) {
+ } elsif ($line =~ m/^(ebtables):\s*(0|1)\s*$/i) {
$opt = lc($1);
$value = int($2);
} elsif ($line =~ m/^(policy_(in|out)):\s*(ACCEPT|DROP|REJECT)\s*$/i) {
$opt = lc($1);
$value = int($2);
} elsif ($line =~ m/^(policy_(in|out)):\s*(ACCEPT|DROP|REJECT)\s*$/i) {
sub compile_ebtables_filter {
my ($cluster_conf, $hostfw_conf, $vmfw_configs, $vmdata, $verbose) = @_;
sub compile_ebtables_filter {
my ($cluster_conf, $hostfw_conf, $vmfw_configs, $vmdata, $verbose) = @_;
- if (!($cluster_conf->{options}->{ebtables_enable} // 1)) {
+ if (!($cluster_conf->{options}->{ebtables} // 1)) {