summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-09-15 12:00:40 +0100
committerGitHub <noreply@github.com>2025-09-15 12:00:40 +0100
commit186522f7d265337c12c45509bdfd0deff08fc4fc (patch)
tree6d78d1dd50362a8cfde0fb207e43c2c31f9c534b /python
parentab7cbe2b4e839ab0bf4cb36bf6f91dc3b13675a7 (diff)
parent00c39cd1e9b4838fb51b48a62c434bc10f25a531 (diff)
downloadvyos-1x-186522f7d265337c12c45509bdfd0deff08fc4fc.tar.gz
vyos-1x-186522f7d265337c12c45509bdfd0deff08fc4fc.zip
Merge pull request #4716 from c-po/T7814-clean-logging
vyos.ifconfig: T7814: suppress unnecessary syslog noise from missing nftables rules
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/interface.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 3b3536301..8101fdcc3 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -416,7 +416,7 @@ class Interface(Control):
def _nft_check_and_run(self, nft_command):
# Check if deleting is possible first to avoid raising errors
- _, err = self._popen(f'nft --check {nft_command}')
+ _, err = self._popen(f'nft --check {nft_command} 2>/dev/null')
if not err:
# Remove map element
self._cmd(f'nft {nft_command}')