Empty firewall groups fail with the new nftables code, with even the simplest example:
set firewall group address-group VYOS_NFT_TEST description "Test to show empty address-group behaviour" commit
will fail:
[ firewall ] Failed to apply firewall [[firewall]] failed Commit failed [edit]
A look at /run/nftables.conf reveals the following code:
#!/usr/sbin/nft -f
define A_VYOS_NFT_TEST = {
}
table ip filter {
}
table ip6 filter {
}If I load this manually with nft -f /run/nftables.conf, I get the following:
/run/nftables.conf:5:5-5: Error: syntax error, unexpected newline
^
/run/nftables.conf:6:1-1: Error: syntax error, unexpected '}'
}Manually changing /run/nftables.conf to the following makes it work:
#!/usr/sbin/nft -f
define A_VYOS_NFT_TEST = { }
table ip filter {
}
table ip6 filter {
}