]> git.proxmox.com Git - pve-firewall.git/commit - src/PVE/Firewall.pm
fix #4556: introduce 'dc' and 'vm' prefix for aliases
authorLeo Nunner <l.nunner@proxmox.com>
Wed, 7 Jun 2023 10:17:49 +0000 (12:17 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 7 Jun 2023 13:13:01 +0000 (15:13 +0200)
commiteeed0d90c99b1a2838d8db5e46a1d5916eeea308
treed81b65632af7b720fe16f36953bcbd859c0a963a
parent856de23adb4129351026bbeefeff0534edddfe6f
fix #4556: introduce 'dc' and 'vm' prefix for aliases

since they had the same issue as IPSets, detailed in #4556. The format
works the same as for IPSets:

    dc/alias
Looks for the alias on the Datacenter level.
    vm/alias
Looks for the alias on the VM level.
    alias
Uses the previous method of scoping, where it first looks at the
VM level and then at the Datacenter level.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
src/PVE/API2/Firewall/IPSet.pm
src/PVE/Firewall.pm