Blame SOURCES/0040-fix-rich-nftables-log-level-warning.patch

8072fb
From f32a3617acd884f0a1af8e648fe09fa17ac24193 Mon Sep 17 00:00:00 2001
8072fb
From: Eric Garver <eric@garver.life>
8072fb
Date: Tue, 21 Jul 2020 15:33:37 -0400
8072fb
Subject: [PATCH 40/45] fix(rich): nftables: log level "warning"
8072fb
8072fb
nftables wants the "warn" keyword not "warning".
8072fb
8072fb
(cherry picked from commit f622e65783c4d9f6969701a799d13cb8486d1c0f)
8072fb
(cherry picked from commit 995cde22cced261c558ecad523befe62eb878d05)
8072fb
---
8072fb
 src/firewall/core/nftables.py | 3 ++-
8072fb
 1 file changed, 2 insertions(+), 1 deletion(-)
8072fb
8072fb
diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py
8072fb
index 97b1cd9f7f1e..85c790b5b51e 100644
8072fb
--- a/src/firewall/core/nftables.py
8072fb
+++ b/src/firewall/core/nftables.py
8072fb
@@ -993,7 +993,8 @@ class nftables(object):
8072fb
         if rich_rule.log.prefix:
8072fb
             log_options["prefix"] = "%s" % rich_rule.log.prefix
8072fb
         if rich_rule.log.level:
8072fb
-            log_options["level"] = "%s" % rich_rule.log.level
8072fb
+            level = "warn" if "warning" == rich_rule.log.level else rich_rule.log.level
8072fb
+            log_options["level"] = "%s" % level
8072fb
 
8072fb
         rule = {"family": "inet",
8072fb
                 "table": TABLE_NAME,
8072fb
-- 
8072fb
2.27.0
8072fb