mirror of
https://git.proxmox.com/git/pve-network
synced 2025-07-27 11:57:52 +00:00
evpn controller: style fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
32870bdc2f
commit
359796b052
@ -385,21 +385,19 @@ sub generate_frr_routemap {
|
||||
sub generate_frr_accesslist {
|
||||
my ($final_config, $accesslists) = @_;
|
||||
|
||||
my @config = ();
|
||||
my $config = [];
|
||||
|
||||
for my $id (sort keys %$accesslists) {
|
||||
|
||||
my $accesslist = $accesslists->{$id};
|
||||
|
||||
for my $seq (sort keys %$accesslist) {
|
||||
my $rule = $accesslist->{$seq};
|
||||
push @config, "access-list $id seq $seq $rule";
|
||||
push @$config, "access-list $id seq $seq $rule";
|
||||
}
|
||||
}
|
||||
|
||||
if(@config > 0) {
|
||||
push @{$final_config}, "!";
|
||||
push @{$final_config}, @config;
|
||||
if (@$config > 0) {
|
||||
push @{$final_config}, "!", @$config;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user