From: Alexandre Derumier Date: Tue, 27 Dec 2022 07:17:19 +0000 (+0100) Subject: controllers: evpn : correctly limit the number of controllers to max 1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=75ec6bfe45d9949e659a48a204c62b164195a646;p=matthieu%2Fpve-network.git controllers: evpn : correctly limit the number of controllers to max 1 Signed-off-by: Alexandre Derumier --- diff --git a/PVE/Network/SDN/Controllers/EvpnPlugin.pm b/PVE/Network/SDN/Controllers/EvpnPlugin.pm index 74ec018..d09f2a9 100644 --- a/PVE/Network/SDN/Controllers/EvpnPlugin.pm +++ b/PVE/Network/SDN/Controllers/EvpnPlugin.pm @@ -271,7 +271,7 @@ sub on_update_hook { my $controller = $controller_cfg->{ids}->{$id}; next if $controller->{type} ne "evpn"; $controllernb++; - die "only 1 global evpn controller can be defined" if $controllernb > 1; + die "only 1 global evpn controller can be defined" if $controllernb >= 1; } }