]> git.proxmox.com Git - proxmox-firewall.git/commit
config: firewall: add generic parser for firewall configs
authorStefan Hanreich <s.hanreich@proxmox.com>
Fri, 29 Mar 2024 09:19:03 +0000 (10:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Apr 2024 19:45:04 +0000 (21:45 +0200)
commit225d78e7ca4cb4670a2bc49e4dba509e3f8d9388
treede53e7cf3542e27528a7278bafe4675e355414af
parent10923cd2706ad3236d16198f7aa2f5f101a3b396
config: firewall: add generic parser for firewall configs

Since the basic format of cluster, host and guest firewall
configurations is the same, we create a generic parser that can handle
the common config format. The main difference is in the available
options, which can be passed via a generic parameter.

Co-authored-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
proxmox-ve-config/src/firewall/common.rs [new file with mode: 0644]
proxmox-ve-config/src/firewall/mod.rs
proxmox-ve-config/src/firewall/parse.rs