diff options
| author | Stefan Hanreich <s.hanreich@proxmox.com> | 2023-11-22 13:27:28 +0100 |
|---|---|---|
| committer | Wolfgang Bumiller <w.bumiller@proxmox.com> | 2023-11-22 14:05:08 +0100 |
| commit | 5aea20cd5b22edf1128861a4f326bc4ac7f46145 (patch) | |
| tree | 132268ced0f0b08bb5ff79ab491fdfd60b7cf53c /src | |
| parent | d34cd5d18068862e7340b6acec48950439fc46f2 (diff) | |
subnets: only delete macs.db entries if mac is available
When removing a gateway do not attempt to delete its entry from
macs.db since we do not have anything cached for the gateway anyway.
Reported-By: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/PVE/Network/SDN/Subnets.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PVE/Network/SDN/Subnets.pm b/src/PVE/Network/SDN/Subnets.pm index 8e2a6aa..05d2de2 100644 --- a/src/PVE/Network/SDN/Subnets.pm +++ b/src/PVE/Network/SDN/Subnets.pm @@ -399,7 +399,7 @@ sub del_ip { my $plugin = PVE::Network::SDN::Ipams::Plugin->lookup($plugin_config->{type}); $plugin->del_ip($plugin_config, $subnetid, $subnet, $ip); - eval { PVE::Network::SDN::Ipams::del_cache_mac_ip($mac, $ip); }; + eval { PVE::Network::SDN::Ipams::del_cache_mac_ip($mac, $ip) if $mac; }; warn $@ if $@; } |
