]> git.proxmox.com Git - pve-network.git/commit
sdn: zones: extract function that reads datacenter config
authorStefan Lendl <s.lendl@proxmox.com>
Fri, 5 Apr 2024 13:17:58 +0000 (15:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 Apr 2024 15:57:18 +0000 (17:57 +0200)
commit2f37fddc0ebcb039df3703ff4a251d33f05e9f2e
treed4a0c21059d2558384c484c58791c5a0ec64f943
parent27b54a086b527322c6c192c0654e5bd7f9334fc5
sdn: zones: extract function that reads datacenter config

The datacenter_config() functions in SDN::Zones::Plugin is a simple
wrapper that reads datacenter.cfg via cfs.
This allows mocking datacenter.cfg in tests.

Signed-off-by: Stefan Lendl <s.lendl@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by: Stefan Hanreich <s.hanreich@proxmox.com>
src/PVE/Network/SDN/Zones/EvpnPlugin.pm
src/PVE/Network/SDN/Zones/Plugin.pm
src/PVE/Network/SDN/Zones/SimplePlugin.pm