Drop extra space from nflog-prefix

iptables-1.8.8+[1] removed the extra space from
nflog-prefix, and with switch to ubuntu noble
which includes iptables-1.8.10 functional tests
failing, removing the extra space fixes these
tests.

[1] http://git.netfilter.org/iptables/commit/?id=05286bab77a6e0f9502e8fb99e1c53ed15663f3f
Related-Issue: #2080933

Change-Id: Id91be59ee78e2b94ea06bb5763e6a94d49de4b15
This commit is contained in:
yatinkarel 2024-12-09 18:44:09 +05:30
parent 1d0a199682
commit 824469b13a
3 changed files with 11 additions and 13 deletions

View File

@ -511,9 +511,7 @@ class IptablesLoggingDriver(log_ext.LoggingDriver):
match_rule += ['--limit-burst %s' % self.burst_limit]
target = ['-j', 'NFLOG']
if prefix:
# NOTE: There is an extra space after 'nflog-prefix' in
# iptables-save output, account for it here.
target += ['--nflog-prefix ', '%s' % prefix]
target += ['--nflog-prefix', '%s' % prefix]
args = direction_config + match_rule + target
return args